The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
Is there a way to get a mesure calculating market share by month ?
market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALLEXCEPT('Fact SKU products', 'Fact SKU products'[date])), 0)
I'm currently issuing a problem that give me for denominator in the mesure the sum of all sales without taking into account my month columns in my table
(brands names are on the left hiding on the screenshot)
On the screenshot we can see that "blank" month is about 20.61% of my raw data, so the june column isn't share for june only but for both june and blank month
Thanks a lot for helping
Edit : table issued a bug with blank column, dax formula seems to be good as described in solution
Math
Solved! Go to Solution.
@Anonymous ,
Maybe this one:
market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALL(TABLE[BRAND_NAME])), 0)
Thank you Ricardo,
market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALL('Fact SKU products'[BRAND_NAME])), 0)
is working fine as my table had another not explained issue, recreated the matrice automatically deleted blank values and total is per category (month or another variable)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
19 | |
18 | |
14 |
User | Count |
---|---|
42 | |
35 | |
24 | |
20 | |
19 |