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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello All,
I need help creating a dax measure to the date related to Max head count. I can use the max function to get the max value but not quite sure how to get the date and the day name related to that max head count.
Please find the raw data table and the output below.
Any help is greatly appreciated.
Thanks,
Deevs
Solved! Go to Solution.
@Anonymous , for date name and day, try these two measures
lastnonblankvalue(table[headcount]), max(Table[Date]))
lastnonblankvalue(table[headcount]), max(Table[Day Name]))
And take the game name and head count as not summarized . or max for head count
@Anonymous , for date name and day, try these two measures
lastnonblankvalue(table[headcount]), max(Table[Date]))
lastnonblankvalue(table[headcount]), max(Table[Day Name]))
And take the game name and head count as not summarized . or max for head count
@amitchandak One more question .. how do you handle if there are more than one max head count?
You are a Legend Amit 🙂
what if you have multiple days with the same maximum headcount? How are you planning to break the tie?
....