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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.