The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi ,I am using a matrix where I am calculating the percentage of a subgroup using this measure and selecting '% of column total'
when I cross filter the matrix from a other chart visual the Percentages are going over 100% ,help please.
measure :
| ||||||||
table 2 :answer
|
table 3:fact
questionid | answerid | count |
1 | 2 | 1 |
1 | 1 | 1 |
1 | 2 | 1 |
1 | 1 | 1 |
2 | 2 | 1 |
2 | 2 | 1 |
2 | 1 | 1 |
matrix:
Solved! Go to Solution.
Hi @Anonymous ,
Would you please try the following measures:
Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),All('FACT')))*100,1)
OR
Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),REMOVEFILTERS('answer')))*100,1)
If it doesn't work, would you please show us the pbix file by onedrive for business.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
thank you dedmond .I achieved this by removing the rounding and * 100 from my old measure and changing the measure type to percentage and limiting to 2 digits and removed show value as percent to column total in values .
but thanks for the replay ,your second solution is very close if i remove rounding and *100 .
Hi @Anonymous ,
Would you please try the following measures:
Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),All('FACT')))*100,1)
OR
Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),REMOVEFILTERS('answer')))*100,1)
If it doesn't work, would you please show us the pbix file by onedrive for business.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
thank you dedmond .I achieved this by removing the rounding and * 100 from my old measure and changing the measure type to percentage and limiting to 2 digits and removed show value as percent to column total in values .
but thanks for the replay ,your second solution is very close if i remove rounding and *100 .
can anyone please help on this.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
36 | |
33 | |
23 | |
14 |