Forum Discussion
Anonymous
5 years agoNot applicable
DAX not working.
Hi. I have created 2 measures using same formula, but one of my DAX is not working and other is working fine. I have attached screenshots of the same. Highest Qualifications and A...
- 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] )
Fowmy
Super User
5 years agoAnonymous
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
- 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.