Forum Discussion
Sixian
5 years agoFrequent Visitor
How to create a view with the largest three values for each row
I'm struggling with a couple of problems in the same project and I'll post two different help request. You can find the Problem 1 in this post: https://community.powerbi.com/t5/DAX-Commands-and-Tips...
wdx223_Daniel
Community Champion
5 years agofirstly, you need to unpivot your data like this
then add a dimension table like this
then create two measures
Attr = CALCULATE(MAX('Table'[Attribute]),FILTER(VALUES('Table'[Attribute]),RANKX(ALL('Table'[Attribute]),CALCULATE(MAX('Table'[Value])))=MAX('TopN'[Index])))
Val = CALCULATE(MAX('Table'[Value]),FILTER(VALUES('Table'[Attribute]),RANKX(ALL('Table'[Attribute]),CALCULATE(MAX('Table'[Value])))=MAX('TopN'[Index])))
then show the view you want
Sixian
5 years agoFrequent Visitor
My Data Table is a calculated table where I added all the Attributes columns using formulas. How can I unpivot the table?