The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi - I am stuck on how I can get the max date based on the rows in a table :
I'd like to be able to identify that max date row as 1 and the rest as 0.
Beent trying using earlier but doesn't seems to work - any help greatly appreciated.
Solved! Go to Solution.
Hi,
Write this calculated column formula
Flag of max date = 1*(Data[Effective Date]=calculate(max(Effective date),filter(Data,Data[Employee ID]=earlier(Data[Employee ID])))
Hope this helps.
You are welcome.
Hi,
Write this calculated column formula
Flag of max date = 1*(Data[Effective Date]=calculate(max(Effective date),filter(Data,Data[Employee ID]=earlier(Data[Employee ID])))
Hope this helps.
pls show expected output
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |