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

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

Reply
Anonymous
Not applicable

Dynamic data for max date based on date slicer selection

Hi, I am stuck with a challenge, where I need to show the Latest date of each ID(Each ID has multiple entries at different dates and times), but the catch is, there is a date slicer(Between option), so when we change the date in the slicer, Table should show the latest data based on the slicer. For example, the overall date range is from 01st April 2021 to 31st March 2022, so if the latest date for id 707 is 18th March, only this should display, but if the slicer is changed to 15th Apri1 2021 to 01st March 2022, then the latest date between this should display for ID 707 which may be 25th Feb 2022

Accordingly, with ID 707, we have multiple ids and all should display their latest data as per selection

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following formula:

 

Measure = 
CALCULATE ( 
    MAX ( 'Table'[Date] ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ID] = MAX ( 'Table'[ID] ) )
)

vkkfmsft_0-1648090828710.png         vkkfmsft_1-1648090842618.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following formula:

 

Measure = 
CALCULATE ( 
    MAX ( 'Table'[Date] ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ID] = MAX ( 'Table'[ID] ) )
)

vkkfmsft_0-1648090828710.png         vkkfmsft_1-1648090842618.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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