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.
Can any one help me out in achieving the below month wise ID last status using DAX.
Solved! Go to Solution.
Hi @shahnawaz92 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
max date = CALCULATE(MAX('YourTableName'[DATE]),FILTER(ALLSELECTED('YourTableName'),'YourTableName'[ID]=MAX('YourTableName'[ID])))
status = CALCULATE(MAX('YourTableName'[STATUS]),FILTER(ALLSELECTED('YourTableName'),'YourTableName'[DATE]=[max date] && 'YourTableName'[ID]=MAX('YourTableName'[ID])))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @shahnawaz92 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
max date = CALCULATE(MAX('YourTableName'[DATE]),FILTER(ALLSELECTED('YourTableName'),'YourTableName'[ID]=MAX('YourTableName'[ID])))
status = CALCULATE(MAX('YourTableName'[STATUS]),FILTER(ALLSELECTED('YourTableName'),'YourTableName'[DATE]=[max date] && 'YourTableName'[ID]=MAX('YourTableName'[ID])))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks its working.
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
203 | |
82 | |
65 | |
48 | |
38 |