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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors