Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I am playing around DAX right now. Let's say i have a table have the following data. And I want to create a measure returning the state of highest value that day.
So first I tried.
VAR ___Date = MAX(Table1[Date])
Return
CALCULATE(MAX(Table1[State]),FILTER(Table1, Table1[Date] = ___Date))
Measure =
VAR ___Date = MAX(Table1[Date])
VAR ___MaxCase = CALCULATE(MAX(Table1[Case]),FILTER(Table1, Table1[Date] = ___Date))
Return
CALCULATE(MAX(Table1[State], FILTER(Table1, Table1[Date] = ___Date && Table1[Case] = ___MaxCase)))
This measure shows Error becuase of single value cannot be determined. Understandable, why this measure gives error but the first one is not?
Solved! Go to Solution.
well, since your Date and Case values are the same for all three recoreds, filtering anything on those columns would not make any differences if you filter condition is the same as the filter will always return the same three records. "C" is greater than "AAA" therefore, Max(State) will always return "C" as long as it can see all three records.
What are you expecting to see?
well, since your Date and Case values are the same for all three recoreds, filtering anything on those columns would not make any differences if you filter condition is the same as the filter will always return the same three records. "C" is greater than "AAA" therefore, Max(State) will always return "C" as long as it can see all three records.
What are you expecting to see?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.