Forum Discussion
Latest Date Filter
- 7 years ago
Hi Nicole,
There could be three solutions. Please check out you Messages box and download the demo.
1. If every property has all the same dates, you can filter them directly. Please refer to the snapshot below.
2. Add a column in the Query Editor and filter.
if [Area Date] = List.Max(let currentProperty = [Property Code] in Table.SelectRows(#"Changed Type", each [Property Code] = currentProperty)[Area Date]) then 1 else 03. Use DAX formula.
Table = FILTER ( ADDCOLUMNS ( 'Table3', "IfMax", CALCULATE ( MAX ( Table3[Area Date] ), FILTER ( 'Table3', 'Table3'[Property Code] = EARLIER ( Table3[Property Code] ) ) ) ), [IfMax] = [Area Date] )Best Regards,
Dale
Hi nwitstine,
Sorry for the confusion. That's just a note. You can delete it. If you have more requirements, please feel free to post here.
Best Regards,
Dale
There are about 20 solutions to this elementary problem on this board, and I can't get any of them to work. Let's say I have a table with one column in it called Date. I want another column called IsLatest that is a one if the date is the latest date, otherwise zero. How can I do this with a minimum of fuss? I would have thought that MSFT would have built this common function in.
- Ashish_Mathur5 years agoSuper User
Hi,
Write this calculated column formula
=if(Data[Date]=max(Data[Date]),1,0)
Hope this helps.
- nqzhhzmn5 years agoAdvocate II
My data is over 100,000 rows and that doesn't return results in finite time, I'm afraid. I've bookmarked the solution in this thread, which works quickly. Thanks.
Solved: Finding the most recent value - Microsoft Power BI CommunityThe solution is by CheenuSing on March 14, 2018 at 8:40 pm.