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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Measure to only show as a total in a matrix?

So I have a matrix visual that shows data for the last few years. I have a measure that takes the most recent value and calculates the percentage change vs the average of the other years. So based on the image below my measure would take the average of 2017-2019 and calculate the percentage change for 2020 based on that average. 

 

2020-05-22_12-28-53.jpg

 

When I bring this measure into the matrix in addition to what's shown above, the results are not right because it is showing the measure by each year.

 

Is there a way so that my measure would appear blank for each of the years and then show up in the total?

 

So the result would be the same as above, but for total there would also be a percentage variance which is my measure I'm trying to add to the matrix.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous Sure,

 

Measure Total Only =

  IF(HASONEVALUE('Table'[Year]),BLANK(),[Existing Measure])



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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

refer if isinscope and isfiltered can help

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Super User
Super User

@Anonymous Sure,

 

Measure Total Only =

  IF(HASONEVALUE('Table'[Year]),BLANK(),[Existing Measure])



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

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 MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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