Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
shahnawaz92
Frequent Visitor

Last status based on month slicer

Can any one help me out in achieving the below month wise ID last status using DAX.

insp.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vtangjiemsft_1-1692846813067.pngvtangjiemsft_2-1692846827992.png

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. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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.

vtangjiemsft_1-1692846813067.pngvtangjiemsft_2-1692846827992.png

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.