Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Everyone,
How can I draw a stacked chart with multiple values?
For instance, show budget as one column, and actual by each salse as one column.
Solved! Go to Solution.
Hi @MiaZhao
Formula below will help
Table =
VAR Table1 =
SUMMARIZE (
Budget,
"value", CALCULATE ( MAX ( Budget[budget] ), FILTER ( Budget, [month] = 5 ) ),
"Legend", "Budget",
"category", "Budget"
)
VAR Table2 =
SUMMARIZE ( Actual, Actual[amount], [sales], "category", "may closed sales" )
RETURN
UNION ( Table1, Table2 )
Here is my Pbix.
Best Regards
Maggie
More details.
Budget
| month | year | budget |
| 1 | 2018 | 100 |
| 2 | 2018 | 100 |
| 3 | 2018 | 100 |
| 4 | 2018 | 100 |
| 5 | 2018 | 75 |
Actual
| date | sales | amount |
| 5/1/2018 | A | 5 |
| 5/2/2018 | B | 30 |
| 5/3/2018 | C | 4 |
| 5/4/2018 | A | 5 |
| 5/5/2018 | B | 11 |
| 5/6/2018 | C | 9 |
Hi @MiaZhao
Formula below will help
Table =
VAR Table1 =
SUMMARIZE (
Budget,
"value", CALCULATE ( MAX ( Budget[budget] ), FILTER ( Budget, [month] = 5 ) ),
"Legend", "Budget",
"category", "Budget"
)
VAR Table2 =
SUMMARIZE ( Actual, Actual[amount], [sales], "category", "may closed sales" )
RETURN
UNION ( Table1, Table2 )
Here is my Pbix.
Best Regards
Maggie
Thank you very much. Maggie.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |