Forum Discussion

artur4's avatar
artur4
Helper I
2 years ago
Solved

TopN - Rows increase when adding a column

Hello,    I am trying to calculate the TOP 5 Customers (by considering the Tot Sales) which have negative delta vs profit average. This is working with the following measure:   TOP 5 Customers =...
  • artur4's avatar
    2 years ago

    Thank you for your reply.

     

    Unfourtunatly it does not work. I cannot add a column from another table with ADDCOLUMNS, I need to have a measure for the new column.

     

    I fixed the issue by creating a new calculated table which is taking only the relevant columns for the calculations and grouping. Then, I created some measures for the calcualtions. 

    It's not an efficiendt way but it works (I was hoping to do everything in one measure by leveraging the VARIABLES)