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
mericok
Frequent Visitor

How can I show the latest row data accordingly as of latest date?

Hi Guys,

I want to show the latest row data accordingly as of the latest date and time in my BI report. I shared an attached picture. For example, I want to show WTV_TARGETQTY row value (445) accordingly the latest date&time which is 8/22/2018 7:30 AM. I set a filter latest date&time. It's work. Here is the formula for this: mAXdATE = CALCULATE(MAX(Target[WTV_DATE_TIME]), ALL(Target))

 

Actually, I used that formula for showing the latest row accordingly date&time but it gave a different value. I appreciate for now to everybody.

 

Measure = LASTNONBLANK(Target[WTV_TARGETQTY],0)

 

Capture.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@mericok use this

 

value =

var maxdate = CALCULATE(MAX(Target[WTV_DATE_TIME]), ALL(Target))

return calculate(sum(Target[WTV_TARGETQTY]), FILTER(Target, Target[WTV_DATE_TIME]) = maxdate

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@mericok use this

 

value =

var maxdate = CALCULATE(MAX(Target[WTV_DATE_TIME]), ALL(Target))

return calculate(sum(Target[WTV_TARGETQTY]), FILTER(Target, Target[WTV_DATE_TIME]) = maxdate

 

 

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.