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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MarkusEng1998
Resolver II
Resolver II

DAX Calculated column to sum a matrix column

I have a matrix report with [Rooms] in rows, [Program] in the pivot column, and [AreaM] for the value.

I have slicers to change the number of columns displayed [Programs] .

 

I want to filter out rows, where the columns all display zero. So I created a calculated column [AllProgramSum] to "sum up the columns". Yet, this calculation does not seem to correspond to the slicer(s). When I expect this calculated column to be zero, it shows the sum from all the columns...

 

Please advise, how to fix my calculated colunn:

    

AllProgramSum = Calculate(sum('SharepointALL'[AreaM]), ALLEXCEPT('SharepointALL', 'SharepointALL'[Rooms]))
 
Thank you!
MeasureSumofMatrixColumns.jpg

 

In this screen shot, I would like to filter out all of the rows, where the three columns are all red (0.00).

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@MarkusEng1998 Calculated columns are only calculated at data load and thus are not interactive. You would need something like a 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

MarkusEng1998
Resolver II
Resolver II

Thanks, @Greg_Deckler . I am making this more complicated than necessary. This simple measure fixed my issue:

_NoProgAreas = (sum('SharepointALL'[AreaM]))

View solution in original post

2 REPLIES 2
MarkusEng1998
Resolver II
Resolver II

Thanks, @Greg_Deckler . I am making this more complicated than necessary. This simple measure fixed my issue:

_NoProgAreas = (sum('SharepointALL'[AreaM]))
Greg_Deckler
Super User
Super User

@MarkusEng1998 Calculated columns are only calculated at data load and thus are not interactive. You would need something like a 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.