Forum Discussion
DAX not working.
- 5 years ago
Anonymous
So you need the year with the highest value:Qualification = MAXX( TOPN ( 1, ALLSELECTED (WC_YEARS[YEAR]), [Highest Qualification] ), WC_YEARS[YEAR] )
Anonymous
The 2nd screenshot doesn't show the Qualification measure, you need to clear on it and share the screenshot.
You use ALLSELECTED(WC_Years[Year]) instead of GROUP BY
- Anonymous5 years agoNot applicable
You are getting this error because the TOPN function is returning multiple values. There are multiple years for which the value is equal to Highest Qualifications.
- Anonymous5 years agoNot applicable
Hi Fowmy Anonymous
I just noticed that there are multiple year values for which the 'Highest Qualifications' measure is giving the same value.
Do you guys know any DAX which will return only 1 year value.
- Fowmy5 years ago
Super User
Anonymous
You can use MAXX
Attendnace =
MAXX (
VALUES(WC_YEARS[YEAR]),
[Highest Attendance]
)
Qualification =
MAXX (
VALUES(WC_YEARS[YEAR]),
[Highest Qualification]
)