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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
FZOU
Helper IV
Helper IV

Display by max date

Hello,

 

i want to display the comment based on slicer by category and max date, max time, below an example :

EXP.PNG

 

For Exp if i choose "Bike" on slicer it should display "OK 2"  because he have max date and maxe time.
Any one can help with this dax formula please ? thank you every one 🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@FZOU , Try a measure like

 

measure =
var _max = maxx(allselected(Table), Table[salesdate])
return
calculate(max(Table[comment]) , filter( Table, Table[salesdate] = _max))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@FZOU , Try a measure like

 

measure =
var _max = maxx(allselected(Table), Table[salesdate])
return
calculate(max(Table[comment]) , filter( Table, Table[salesdate] = _max))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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