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.
Hello,
I need to create a measure that returns the "% of total" in green, not the "% of total in red".
Region | Item | Price | Quantity | Dollars | % of Total | % of Total | |
Kansas City | Hamburger | $1.00 | 4 | $4.00 | 20.0% | 13.3% | |
Kansas City | Cheeseburger | $1.50 | 4 | $6.00 | 30.0% | 20.0% | |
Kansas City | Double Cheeseburger | $2.00 | 5 | $10.00 | 50.0% | 33.3% | |
St. Louis | Hamburger | $1.00 | 1 | $1.00 | 10.0% | 3.3% | |
St. Louis | Cheeseburger | $1.50 | 2 | $3.00 | 30.0% | 10.0% | |
St. Louis | Double Cheeseburger | $2.00 | 3 | $6.00 | 60.0% | 20.0% |
My formulas
If you rewrite the Total Sales measure as
Total Region Sales = CALCULATE(SUM(Table1[Dollars]), ALLEXCEPT(Table1, Table1[Region]))
and use that as the denominator, it should get your result.
Format it as a %.
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 |
---|---|
49 | |
27 | |
20 | |
15 | |
12 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |