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
tstackhouse
Helper III
Helper III

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

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

@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

@tstackhouse - 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)

@ 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 @tstackhouse,

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
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.