Forum Discussion
Filter on datetime column sometime work ,sometime not
HI Greg,
I have data like :
now i need to get Amount based on max (currenttime).
For this i created a measure and this measure is used in many measure to calculate difference ,% change.
and the worst part is it,this measure works sometimes and sometimes not.
and it work in SIT,UAT and fail only in PROD 😞
khush19 , You expected output is not clear. Max on the row context as good as row values unless there is some logic added
Try
Total Calculated Amount =
var _max =MAXX(ParkingSessionSA,ParkingSessionSA[CurrentTime])
return
CALCULATE(sum(ParkingSessionSA[TotalAmount]),FILTER(ParkingSessionSA,ParkingSessionSA[CurrentTime]=_max))
Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.
- khush195 years ago
Resolver I
HI Amit,
I tried the measure you suggested,even that is also not working.
- Greg_Deckler5 years ago
Community Champion
khush19 OK, has to be an issue with your data then. Is this import mode or Direct Query mode or?
- khush195 years ago
Resolver I
This is PUSH dataset ,where data is pushed to power BI every 5 mins from Azure data factory