Forum Discussion

josephheinrich's avatar
josephheinrich
Regular Visitor
3 years ago
Solved

Return TopN Column Names

Question:
How can I return the column names of the 3 columns with the highest sum? The three columns I'm expecting to be returned are 'Professional', 'Effective Communication', and 'Accurate Information'

Sample Data I'm working with:

DateGathered InformationBuilt RapportEffective CommunicationAccurate InformationProfessional
1/2/202300111
2/2/202300101
3/3/202300101
4/3/202311011

 

3 Replies

  • Thank you this did the trick! For anyone in the future, the data model needed to be adjusted. Unpivot Columns except for Date. Then create the following measure: 

    Measure = CONCATENATEX(TOPN(3,VALUES(Data[Attribute]),[Values],DESC),Data[Attribute],", ",[Values],DESC)