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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Percent of Total Measure

Hello,

 

I am trying to get a percent of total units for each month in my matrix. Currently, I am using "Show value as" then selecting "percent of total". However, I do not want to have to include values Families that do not have an actual name. (shown by thered arrow in the picture).

The probelm is that I cant just filter those out as it will impact the "%CT Total Units". Is there a way that I could do this in the formula of a measure??

Thanks in advance!

 

 

Capture.PNG

 

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , add a visual level filter Family is not blank

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

@amitchandak  thanks for the reply

 

I cannot use this though because it impacts my percentages. The first visual shows the percentages as a percent of the total with all families. The second shows the percent of total when filtering out the blanks. As you can see the percentages change when I filter out blanks. I want to keep the percentages the same as they are in the first visual but I do not want to see the blanks.

Capture.PNGCapture2.PNG

@Anonymous - Maybe in your measure you could do something like this:

Measure =
  VAR __Family = MAX([Family name column thing])
  VAR __Calc = <bunch of calculation stuff, whatever>
RETURN
  IF(ISBLANK(__Family),BLANK(),__Calc)


Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

HI @Anonymous,

Can you please share some dummy data and year formula to test? It should help us test and coding formulas on them.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.