Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Fusilier
Helper III
Helper III

Help with visual calculation

Hi,

I've created a visual calculation measure which seems to do as I hoped:

Percent of grand total = DIVIDE([Sum of row count], COLLAPSEALL([Sum of row count],COLUMNS))*100
I'm using it in a clustered bar chart:
screen 1.png
When I drill down to subsequent levels (the levels are Department/Category/Question - This is data from a survey),
It does work, showing the correct percentages at that level:
screen 2.png
However, if I filter out any of the Aggregated responses (either Agree, Neutral, Disagree), it recalculates the remaining responses, so if I just want to see 'Agree' responses, I end up with 100% bars as it's recalulating just the remaining responses in the visual.
screen 3.png
How would I adjust the measure so that it shows 'Agree' responses without recalculating. So, here for example, I want to see 73.98 for Culture, 72.24 for Engagement etc. etc.?
 
Hope somebody can help?
 
2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Either use HASONEVALUE as a filter for your measure, or use separate visuals, one for Percent of Grand Total, and one for just Percent.

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

I think the ALL() function will also have to be used somewhere.  To receive further help, share the download link of the PBI file.  Show the problem there clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I think the ALL() function will also have to be used somewhere.  To receive further help, share the download link of the PBI file.  Show the problem there clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Either use HASONEVALUE as a filter for your measure, or use separate visuals, one for Percent of Grand Total, and one for just Percent.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.