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 All,
I need one help for solving a below issue-
I have tried by using calculate & calculate all function but still now able to solve-
Here is problem
This is my data
Category Product Value
Category1 | Apple | 10 |
Category1 | grapes | 20 |
Category1 | oranges | 30 |
Category1 | banana | 40 |
Category2 | Apple | 20 |
Category2 | grapes | 60 |
Category2 | oranges | 30 |
Category2 | banana | 40 |
I want to create a chart ( table) to show category, product and value, and percenate (for that particular product )
Product Category1 | Product | Value | Value_Sum_AllProducts | Product% |
Category1 | Apple | 10 | 40 | 25 |
Category1 | oranges | 30 | 40 | 75 |
Category2 | Apple | 20 | 50 | 40 |
Category2 | oranges | 30 | 50 | 60 |
Here i considered only two product Apple & Oranges and excluded other product from visual level filter.
i created this measure
Solved! Go to Solution.
Hi @bhaskarasalla,
here is one way of achieving it
AllProductsPrCategory = CALCULATE ( SUM ( 'Table'[Value] ); FILTER ( ALL ( 'Table'[Product] ); 'Table'[Product] IN { "Apple"; "oranges" } ) )
cheers,
S
Hi @bhaskarasalla,
here is one way of achieving it
AllProductsPrCategory = CALCULATE ( SUM ( 'Table'[Value] ); FILTER ( ALL ( 'Table'[Product] ); 'Table'[Product] IN { "Apple"; "oranges" } ) )
cheers,
S
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 |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
52 | |
46 | |
15 | |
12 |