Forum Discussion
nwitstine
7 years agoFrequent Visitor
Latest Date Filter
I have seen many solutions to this problem, but none of them seem to work for my dataset. I have a table listing property names, codes, area, and area date. I'd like to filter my table to only show o...
- 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
Ashish_Mathur
5 years agoSuper User
Hi,
Write this calculated column formula
=if(Data[Date]=max(Data[Date]),1,0)
Hope this helps.
nqzhhzmn
5 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 Community
The solution is by CheenuSing on March 14, 2018 at 8:40 pm.