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
Hi,
Got this problem I can not figure out, so hopefully someone can assist me with this. Below is a screenshot from a matrix visualisation on a simplified data model that shows my problem.
For each product I would need to get the product's percentage of the total sales within the product group each month.
The Allexcept_Productmeasure shown below gives the result 330 in January for product group A and 10 for product group B. These figures are however the total amounts for all the periods in the data set. I would need the measure to show 180 (A) and 10 (B) in January. There is one-to-many relationship between a Calendar table and the Volume table
I have tried to add another "ALLEXCEPT" for the time dimension, but I can't get this to work. Apparently "ALLEXCEPT" cannot be used on mutiple dimensions, but what would be the best solution to get the results I need?
Best regards,
Chris
Solved! Go to Solution.
OK. In that case, the guide here indicates that you can include it within ALLEXCEPT since it's part of the expanded table.
Allexcep_Productgroup =
CALCULATE (
[Sales],
ALLEXCEPT ( volume, dim_date, volume[productgroup] )
)
Do you have a separate date dimension table? I'd guess not given this behavior but I would strongly recommend creating one.
@AlexisOlson Hi, yes, I have a separate date dimension table and a one-to-many relation between the tables.
OK. In that case, the guide here indicates that you can include it within ALLEXCEPT since it's part of the expanded table.
Allexcep_Productgroup =
CALCULATE (
[Sales],
ALLEXCEPT ( volume, dim_date, volume[productgroup] )
)
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
21 | |
18 | |
16 | |
15 | |
14 |
User | Count |
---|---|
37 | |
33 | |
22 | |
18 | |
17 |