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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Saniat
Helper V
Helper V

Hide a bar from visual only but consider it in the calculation

Hi,

I have 100 records each belong to a category.

ID,Category
101,A
102,A
103,B
....
200,D

I have plotted them in bar chart and showing as % of grand total.

 

I want to remove one category from 'visual only'. This means that category should be counted in the overall % calculation, but will not be shown in the visual.

Can I achieve that ?

Saniat_0-1710326849177.png

 



1 ACCEPTED SOLUTION

Please see this measure:

_AAndrade_0-1710334353956.png

You'll probably have to adapt this part "COUNT(T_Data[ID])/100" according to your model, but the logic is this.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

3 REPLIES 3
_AAndrade
Super User
Super User

Hi,

Please could you share your measures and the how you build this chart?

I think you could do this using a IF statement, but I need to see the information above to think how to do it.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




@_AAndrade , hi, no measures created, just brought the field into visual and applied native calc to show as % of grand total.

Saniat_0-1710327924409.png

 

Saniat_1-1710327951376.png

 

Please see this measure:

_AAndrade_0-1710334353956.png

You'll probably have to adapt this part "COUNT(T_Data[ID])/100" according to your model, but the logic is this.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors