Forum Discussion
khush19
Resolver I
5 years agoFilter on datetime column sometime work ,sometime not
I am working on report ,where i need to take the amount based on latest datetime. For this i created a measure Total Calculated Amount = CALCULATE(sum(ParkingSessionSA[TotalAmount]),FILTER(Parking...
amitchandak
Super User
5 years agokhush19 , 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.
khush19
Resolver I
5 years agoHI 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