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
SRobbo1990
Frequent Visitor

Is there a way to make a total Blank?

Hi All,

 

I currently have the following matrix;

SRobbo1990_0-1694593003749.png

 

As you can see the 'Sum of Costs' measure can be broken down into currencies. However when we drill up to the supplier level the 'sum of costs' totals, however this value is incorrect as it is the combination of two different currencies (see below). 

 

SRobbo1990_1-1694593104550.png

What I have been asked to do is Blank out the total when its drilled up to the supplier level, but have values when like above (split out by currencies). 

 

Any ideas?

 

Thanks

 

1 REPLY 1
christinepayton
Super User
Super User

You can use DAX "HASONEVALUE()" with an if-statement in your measure to return a different result for the total vs not total in matrices. You'd use the HASONEVALUE() check against the field in question (currency?) to check if it's aggregated or not, then just have your if-statement return blank if it's false and the actual value if it's true. 

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.