Forum Discussion
Row index in table visal
Hi zenisekd ,
I am not sure my idea is feasible but you can give it a try. You could create multiple measures for ranking the columns based on the different values you have (rank by sales, rank by qty, etc...) You can follow this example.
Then you will end up with two or more different measures for rankings/row numbering.
You can create a simple table that you can use as a slicer in the page to select value you want to show, and then a final measure that changes the measure value based on the slicer selection.
Let's say you have created two rank measures, [rank by sales] and [rank by qty].
You can create a table with one column ("Rank by") and two rows: "Sales" and "Quantity", and put this on a slicer.
Then you can create a new mesure [final rank]
final rank = IF(SELECTEDVALUE(Table[Rank by])="Sales",[rank by sales],[rank by qty])
You may use a switch statement instead if you have many different columns to rank by.
dk_dk I am aware of this option, but I refuse to use something so complex for displaying something so simple... especially if there might be + columns and the customer has not decided yet about all of them..
Anyone else please?
- dk_dk2 years ago
Super User
That is fair enough - I am hoping someone else has a better solution.