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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
CLCastroEn
Helper IV
Helper IV

Remove Filters

Hello!

I'm making a 100% stacked column chart. which is like this:

CLCastroEn_0-1603118203327.png

where the value field is given by the store count and legends are the state of the stores. Example: 81.6% do room count with stock, 9.05% count rooms with average stock, and so on. This chart serves me because it takes as the total all the room count that I have and performs the percentage of each of them. the problem arises when I use a filter and want to see only the low rooms:

CLCastroEn_1-1603118224127.png

it's this way, it takes about 100% just the filtered rooms. I need you to show how much the low rooms weigh, but with respect to the total. (should appear there about 5%)

I tried doing this

Valor = DIVIDE(COUNTA(Base[Store Name]), CALCULATE(COUNTA(Base[Store Nbr]), ALL(Base)))

but the chart doesn't pull the right percentages

please help

3 REPLIES 3
amitchandak
Super User
Super User

@CLCastroEn ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

CLCastroEn_0-1603123166458.png

the first column is the store count, the second column is the % of the count (which is precisely what I need the chart not to remove from the filter), and the last column "Value" is the percentage that throws away the measure that I create :

Valor = DIVIDE(COUNTA(Base[Store Name]), CALCULATE(COUNTA(Base[Store Nbr]), ALL(Base)))
column 2 and column 4 should give the same value.
I'll be @amitchandak

Hi @CLCastroEn ,

How did you calcute the column2 to count stores? Bascially it should show the same result, please see the picture below and check my sample file.

divide.png

Seems need more details about this issue for further discussion or you can consider sharing a sample file.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.