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
Anonymous
Not applicable

Cumulative Bar Chart - How to Hide Months Without Affecting Values

Is there a way to filter our columns in a bar chart without affecting the calculation? For instance, I have 10 production loss categories, but I only want to show the top 4. The loss columns are on the Axis, but anytime I filter our the ones I don't want to show, it recalculates the percentages. Is there any way to avoid this? 

 

Thanks

Jacob

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

Take the following table for example, firstly create new columns using DAX below in the table.

%pecentage = 'Table'[Amount]/SUM('Table'[Amount])
RankColumn = RANKX(ALL('Table'),'Table'[%pecentage],,DESC)
1.PNG

Secondly, create bar chart using ProductSubcategory and %pecentage, then drag RankColumn to Visual level filters and set the value of RankColumn to “is less than or equal to 4”.
2.PNG


If the above steps doesn't help, please share sample data of your table here.


Thanks,
Lydia Zhang

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.