Forum Discussion
Calculated percentage value for columns
- 3 years ago
Anonymous Yes, you can pivot the data to have one column for subject
create a measure like below
Measure_SubA = CALCULATE(COUNT(tab_stud[Subject]),tab_stud[Skill_Level]=4 || tab_stud[Skill_Level]=3)/CALCULATE(COUNT(tab_stud[Subject]),tab_stud[Skill_Level]=4 || tab_stud[Skill_Level]=3|| tab_stud[Skill_Level]=2)pbix attached as well.
FYI. if there is something which can be done easily in excel and data size is not too big then it would be advisable to use excel instead of powerbi. PowerBI can be used in situation where data is coming from different sources and some linking needs to be done. Also, cross filtering is one of the key feature of powerbi which can make easy to understand big data.
The Student Data table is unpivoted now as seen in the image above. Do you want me to duplicate the original table to preserve Subject columns?
So, do I need to create this measure for each and every subject there is? Excel seems faster here as it already can have the calculated value using a formula. Is there any other benefit of dashboard interaction?
Anonymous Yes, you can pivot the data to have one column for subject
create a measure like below
pbix attached as well.
FYI. if there is something which can be done easily in excel and data size is not too big then it would be advisable to use excel instead of powerbi. PowerBI can be used in situation where data is coming from different sources and some linking needs to be done. Also, cross filtering is one of the key feature of powerbi which can make easy to understand big data.