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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ask_kumar
New Member

Max of date for each customer with date slicer

I have a dataset like below
 
 

WvA9F.png

 

I have a date slicer aswell

My requirement is to get the max of date for every name when slicer is selected aswell.

I was able to get the max of date without slicer but when slicer is selected my logic is not working

CALCULATE(MAX(Orders[Date]), ALLEXCEPT(Orders,Orders[Name]))

but this logic not working when date slicer is active.

I need as below

a  10/1/2023
b  8/28/2023
c  6/15/2023

if slicer is selected for 9/30/2023, I need as below

a  9/1/2023
b  8/28/2023
c  6/15/2023

Any help is appretiated

1 REPLY 1
amitchandak
Super User
Super User

@ask_kumar , Try a measure like

 

calculate( max(Orders[Date]), filter(all(Orders), Orders[Name] = max(Orders[Name])))

 

or

 

 

calculate(lastnonblankvalue(Orders[Date], max(Orders[Date])), filter(all(Orders), Orders[Name] = max(Orders[Name])))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors