Hi, I want to build a report in PBI, that shows me the following growth information in a table:
* Country
* Brand
* Growths %
* Growths % Market
My base data model looks as follows:
FactSales
* Date
* Country
* Brand
* Category
* Corporation
* Sales
* Sales Prev Year (calculated via Time Intelligence)
* Growths % (Sales / Sales Prev Year) - 1
* Growths % for my company (Calculate(Growths %, Corporation = "MyCompany"))
* Growths % competitors (this is what is not working properly)
DimDate
* Date
DimBrand
* Country
* Brand
* Brand Subcategory
* Category
The relationships as defined bidrectional, and DimBrand and FactTable are joined via a concatenated key for Country / Brand to ensure a one-to-many relationship.
The brands of my competitors are of couse not the same as my brands, I do want to compare my growth against my competitors based on the category. However, the categories are not consistently defined. Let's assume I'm a car manufacturer and I produce a sedan with the brand name 'Elite' and category Small Cars. The category of my competitors however is Medium Size Cars. This may even vary in each country. Thus I thought to create a Brand Dimension, where I define for each Brand in each Country the Competitor Category and apply this as a filter, so that my DAX formula should look similar to the following statement:
Growths % competitors = CALCULATE( Growths %, ALL (DimBrand.BrandSubcategory), FactTable[Category] = DimBrand[Category])
But this doesn't work.
Any ideas?
Thank you