Forum Discussion

nicoenz's avatar
nicoenz
Helper III
3 years ago
Solved

Top N by value

Hi everyone,  I have a table with four columns (supplier, quantity, revenue, cost). With this table i created a visual that uses a switch to show quantity/revenue/cost by supplier.  Since the numb...
  • some_bih's avatar
    some_bih
    3 years ago

    Hi nicoenz if you have a lot of rows, I suggest you to create separate table to get lower number of rows so this newly created table is source  for your visual.

    In addition, TOPN is specific function "TOPN does not guarantee any sort order for the results." this could be the reason for your result and motivation to creat shorter table.

    https://dax.guide/topn/