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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ThePiecesFit
Advocate III
Advocate III

How can I make the percent of column total add up to 100% even if the filters change?

I made this dummy table to make it easy for anyone to help me:  
https://drive.google.com/file/d/1-iye11nvx4cJK3lKXc6U97T-4gys9qAP/view?usp=sharing

 

Goal: to calculate percent of column total. And if any of the filters change, to keep calculating percent of column to 100%. 

 

As you can see below, when I change the filters, the percentages no longer add up to 100%. I've read dozens of similar questions on this forum and haven't found the answer that applies to me. Please help!

 

ergsegh.gif

 

1 ACCEPTED SOLUTION
ThePiecesFit
Advocate III
Advocate III

I got someone at my company to help. The solution was to use the "100% stacked column chart" visualization. There's no need to create a measure, I just selected that visualization and put the count of opp ID in the Values section and voila! 

 

Annotation 2020-05-13 124207.jpg


ejuuj.gif

 

View solution in original post

3 REPLIES 3
ThePiecesFit
Advocate III
Advocate III

I got someone at my company to help. The solution was to use the "100% stacked column chart" visualization. There's no need to create a measure, I just selected that visualization and put the count of opp ID in the Values section and voila! 

 

Annotation 2020-05-13 124207.jpg


ejuuj.gif

 

Greg_Deckler
Super User
Super User

Would have to see your measures or how you are calculating those %'s. Probably has to do with potentially needing to use ALLSELECTED instead of something like ALL. Almost definitely involves your own measure versus the default, built-in methods of doing that.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg. I included a link to the dummy file. And the formula I'm using is on the top left of the GIF that I embedded. Thanks. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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