Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am trying to show each manufactuer as a % of product type NOT as a % of all/totalproducts.
Example:
Product Manufactr Units %ofProd %ofTotal
Cars Mfctr#1 50 67% 45.5%
Cars Mfct#2 25 33% 22.7%
Cars 75 100% 68.2%
Trucks Mfct#1 20 57% 18.2%
Trucks Mfct#3 15 43% 13.6%
Trucks 35 100% 31.8%
Total 110 100%
I know how to find the % of total but how do I calc / show the "% of Product" as shown above?
Thank you for any help in advance!
Solved! Go to Solution.
@Anonymous
% of Product = DIVIDE ( SUM ( 'Table'[Units] ), CALCULATE ( SUM ( 'Table'[Units] ), ALLEXCEPT ( 'Table', 'Table'[Product] ) ), 0 )
Hi @Anonymous,
In your scenario, you can use @Sean's DAX expression to get percentage of products. Then format the measure to return percentage format values. You can know how use AllExcept() function from this article: Favorite Quick & Easy DAX: Calculate Percent of Total Scenario. Please refer to final results:
If you have any question, please feel free to ask.
Best Regards,
Qiuyun Yu
For me result of that is the same.
Plus I can´t find divide fuction in desktop.
My biggist problem is the column --month , I need 100% for each month , not only for total.
@Anonymous
% of Product = DIVIDE ( SUM ( 'Table'[Units] ), CALCULATE ( SUM ( 'Table'[Units] ), ALLEXCEPT ( 'Table', 'Table'[Product] ) ), 0 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |