cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.

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
Super User

@Anonymous Sure,

Measure Total Only =

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

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
2 REPLIES 2
Super User
Super User

@Anonymous Sure,

Measure Total Only =

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

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.