2 Replies Latest reply: Dec 5, 2015 3:47 AM by Gysbert Wassenaar RSS

    Calculated Dimension in a table

      Hello,

       

      I'm trying to create a straight table which contains a list of customers. I'd like to have one column showing their top product and the second column showing their second most product. I'm able to get this working for one product only using the formula below:

       

      If(Aggr(Rank(Sum([MONTHLY UNITS])), [CUSTOMER NAME], [PARENT PRODUCT NAME]) = 1, [PARENT PRODUCT NAME])

       

      However, when I try this with a second product it puts it on another line. The desired result is one row per customer with a product name in each column. Any ideas how to do this?