Is there any way to get Summarised Data / Flattened Data from pivot Table?
Example Config
- Row fields: Location > Department > Designation > Employee Type
- Column fields: Gender > Band > Grade > Age-Group
- Aggregation fields: Headcount, Average Salary, Average Years of Experience
Each cell in the pivot table will correspond to a Location, Department, Designation, Employee Type, Gender, Bnad, Grade and Age group and will represent on of the values among Headcount, Average Salary, Average Years of Experience. Assume two sample groups:
- Rows : Hyderabad → Engineering → Senior Developer → Full Time
- Columns : Male → B2 Band → G3 Grade → 30-40 Age Group
1. Values : Headcount 12, Average Salary : 1450000, Average Years of Experience : 14 - Rows : Bangalore → Sales → Manager → Contract
- Columns : Female → B1 Band→ G2 Grade→ 20-30 Age group
1. Values : Headcount : 2, Average Salary : 1000000, Average Years of Experience : 6
They shall be formatted as below in the response sent.
{ "location": "Hyderabad", "department": "Engineering", "designation": "Senior Developer", "employment_type": "Full-time", "gender": "Male", "band": "B2", "grade": "G3", "age_group": "30-40", "headcount": 12, "average_salary": 1450000, "average_experience_years": 14 }, { "location": "Bangalore", "department": "Sales", "designation": "Manager", "employment_type": "Contract", "gender": "Female", "band": "B1", "grade": "G2", "age_group": "20-30", "headcount": 2, "average_salary": 1000000, "average_experience_years": 6 }