Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MiaZhao
Helper I
Helper I

Stacked chart with multiple values

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.

 

2018-05-31 13_47_48-Sales Scorecard - Power BI Desktop.png

1 ACCEPTED 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 )

2.png

 

Here is my Pbix.

 

Best Regards

Maggie

View solution in original post

3 REPLIES 3
MiaZhao
Helper I
Helper I

More details.

Budget

monthyearbudget
12018100
22018100
32018100
42018100
5201875

Actual

datesalesamount
5/1/2018A5
5/2/2018B30
5/3/2018C4
5/4/2018A5
5/5/2018B11
5/6/2018C9

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 )

2.png

 

Here is my Pbix.

 

Best Regards

Maggie

Thank you very much. Maggie. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.