Simplified pivot summarization function.