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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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