Forum Discussion
Latest Date Financial Year
- Anonymous1 year ago
Hi Angith_Nair ,
According to your question, we have tried other methods, based on your actual data, I hope to help you with your question!
Our first step is to find the maximum date under each fiscal year, which we call MAXTable.Then we merger with the original table to get a MaxDate, which is the maximum date value for each fiscal year.
And finally, we add a new column to find out if each ID is the latest date.I hope this helps you solve your problem, if you have further questions you can check out the uploaded pbix, I'd be incredibly proud to solve your query!
Hope it helps!
Best regards,
Community Support Team_ Tom ShenIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
hi Mat42 ,
try like:
if
[Date] =
List.Max(
let currentCode = [Code], currentyear = [FinYear]
in Table.SelectRows(
#"Renamed Columns",
each [Code] = currentCode and each [FinYear] = currentyear )[Date]
)
then 1
else 0
- Mat421 year agoResolver I
Thanks for replying.
The code is getting flagged at this point:
Token Literal expected