Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi there,
I have a table with several fields. One of them is the date and another one is the time. I need to filter the table to retrieve the last date and the last time of this date. I am using FILTER function and LASTDATE to filter the table and using LASTNOTBLANK to get the last time, but this last function has to be applied on the field already filtered.
How can I achieve this?
Thanks,
Solved! Go to Solution.
Hi @maserr ,
Try the measure as below:
LastHourLastDay =
CALCULATE(MAX('Table'[Value2]),FILTER(ALL('Table'),'Table'[Value1]=MAXX(ALL('Table'),'Table'[Value1])))
And you will see:
For the related .pbix file,pls see attached.
Hi @maserr ,
Try the measure as below:
LastHourLastDay =
CALCULATE(MAX('Table'[Value2]),FILTER(ALL('Table'),'Table'[Value1]=MAXX(ALL('Table'),'Table'[Value1])))
And you will see:
For the related .pbix file,pls see attached.
Hi,
here is attached my example:
https://drive.google.com/file/d/1dDM6v5_PIbk0J8pSqGO0uumN_aXRe5FS/view?usp=sharing
with the solution purposed I am getting the last time but not 09:30:30 which would be the one correct.
Thanks
Sorry for the inconvenience:
https://drive.google.com/file/d/1dDM6v5_PIbk0J8pSqGO0uumN_aXRe5FS/view?usp=sharing
@maserr ,
Try lik
lastnonblankvalue(Table[date],max(Table[column]))
refer : https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.