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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.