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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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