Forum Discussion

joshmahe's avatar
joshmahe
Frequent Visitor
2 years ago

Stuck- How to go about developing this clustered column chart- open to ideas/solutions/insights.

I am relatively new to Power BI but need to get this chart done asap, so any help in really appreciated. I have the below chart- which is showing the Average and Total number of Employees by their Tier. Tier has values - EEonly, EESpouse, EEFamily, EEChildren. The average and total of these employees belonging to these tiers is calculated based on the year. The chart i have attached was developed in excel but i need to develop the same in powerbi. 

 

Here are few things I need help with- 

1. I need to filter this chart by the average and total, so I need average and total in the slicer and based on what i choose, the chart shows the average or the total. Help needed on how to go about the slicer. 

2. If i use a measure to calculate EEonly or EESpouse or other tiers, how can i go about it? Using a measure for each tier and each year will give me 8 measures for Average and 8 measures for Total. I dont know if i am thinking about the entire thing wrongly and if it can be done in a much easier way. And if i use measures, I am also confused how to go about including them in field parameters or switch/if because i would need to choose multiple measures at the same time. 

3. If i use calculated columns instead, i wont be able to control them with slicers. And also confused about how many calculated columns i need to develop to achieve what i want. 

 

My data looks like this- 

YearEmployeeTier
2021EmployeeChildren
2021EmployeeChildren
2021EmployeeChildren
2021EmployeeFamily
2021EmployeeFamily
2021EmployeeFamily
2021EmployeeSpouse
2021EmployeeSpouse
2021EmployeeSpouse
2021EmployeeChildren
2021EmployeeChildren
2021EmployeeChildren
2022EmployeeFamily
2022EmployeeFamily
2022EmployeeFamily
2022EmployeeSpouse
2022EmployeeSpouse
2022EmployeeSpouse
2022EmployeeFamily
2022EmployeeFamily
2022EmployeeSpouse
2022EmployeeSpouse


The calc for average and total would just count the number of entries for each year and each tier. Average would be count divided by number of months in that year, and total would be just total per year. 

Any help is appreicated, thanks in advance. 

1 Reply