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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
rrhutch
Helper II
Helper II

Measure Working in Table But Not Matrix

I have the following measure that is calculating correctly if I am displaying the data in a table visualization, but not if I am displaying that data in a Matrix visualization. Wondering if I could get some direction on what I am missing. The measure is as follows:

 

MinMeasure = CALCULATE(MINA([DateDifference]) , ALLEXCEPT(TableA, TableA[id], TableA[TERM], TableA[DEGREE], TableA[CURRICULUM]))
 
It looks like it is doing that calculation in the Matrix on the min date in the whole table and not on the context of the min date in the context of ID, TERM, DEGREE, and CURRICULUM.
 
Thanks in advance for any input.
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@rrhutch,

 

Check if the fields dragged to Rows and Columns are included in ALLEXCEPT.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@rrhutch,

 

Check if the fields dragged to Rows and Columns are included in ALLEXCEPT.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, that was the problem. So that raises one other question for me. I am looking for that measure to work even if I don't have all of those fields in the Matrix. I was thinking the the ALLEXCEPT would accomplish that, but looks like I was wrong. Any input on how to have the measure calculate based on that context even if the fields aren't being displayed in the visualization?

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.