relativity
1 TopicCompetitiveness index
Hi all, I'm having some trouble with the Dax logic. I have a data set, which I don't have access right now, but the structure is simple: Data - product ID - product description - brand - paid price Each observation is a sold product. It is not grouped by quantity. My objective is to group these events by date and brand, calculate the average price by brand, and also an competiveness index, which I'm struggling to create. The index reasoning is not a big deal, I want to use a specific brand as a reference and calculate the relativity between the other brands. For example, I have three brands, (Nike, adidas, puma). Referencing "Nike" as an example, I would like to divide the avg price from Adidas and puma separately, and as a final result understand the relativity between the brands. Using Dax, I tried doing the following: "compt:= IF(table[brand] ="Nike", 1, table[price] / Calculate(Average(table[price]), Filter(table, table[brand] = "Nike" " My objective here was to normalize my reference and then divide each observation, so I could obtain the result for each brand. The result is not what I expect, usually the result is always "infinite" Unfortunately I really don't have the data available at this moment, but later I would be able to update the section if needed. I would appreciate all the help, and tips, since I'm a new user, it is always a challenge. Thanks!1.1KViews0likes2Comments