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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors