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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Measure not calculating all rows

Hello everyone,

I have following measures that are supposed to calculate the maxDate and the currentDate of LASTMODIFIED

maxDate is calculated with reference to TC_ID because there is sometimes multiple results for one ID
and I only want the latest one.
CurrentResult =
var currentDate = CALCULATE(MAXX(RESULT,RESULT[LASTMODIFIED]))
return currentDate
 
LatestResult =
var MaxDate = CALCULATE(MAXX(RESULT,RESULT[LASTMODIFIED]),
ALLEXCEPT(RESULT,RESULT[TC_ID]))
return MaxDate
 
This results in the following table. Where LatestResult is absolutely fine I wonder why CurrentResult is not giving a result for all rows...

Luca1234_0-1636023805281.png

Can anybody please help me with this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Figured that one out by doing this:

CurrentResult =
var currentDate = CALCULATE(MAXX(RESULT,RESULT[LASTMODIFIED]),

ALLEXCEPT(RESULT,RESULT[LASTMODIFIED]))
return currentDate

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Figured that one out by doing this:

CurrentResult =
var currentDate = CALCULATE(MAXX(RESULT,RESULT[LASTMODIFIED]),

ALLEXCEPT(RESULT,RESULT[LASTMODIFIED]))
return currentDate

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors