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
natfg23
New Member

Compare Scenarios

So I have this table and I want to compare column Scenarios (where there are Act19, Act20, Act21, FC1, and so on) and convert columns (January, Feb,March, etc) so I can visualize a graph with:

 

Bar with Value of January for Act 19, Act 20, Act 21...

Bar with Value of February for Act 19, Act 20, Act 21...

FactoryScenarioCurrencyLabour ClassJanuaryFebMarch

TLP

ACT 19LCDirect195990207890299566
ABNACT 19LCDirect456000213405983740
DELACT 19 LCDirect958674983045890475

TLP

ACT 20LCIndirect234958192304579384
TLPACT 20Const.Indirect156823942398
ABNACT 20Const.Indirect345624572458
DELACT 20Const.Indirect257687652066
5 REPLIES 5
Anonymous
Not applicable

Hi @natfg23 ,

 

It seems that you want to show Values of each Month and each Scenario.

 

Please firstly use "Unpivot" to transform data:

Eyelyn9_0-1654742076868.png

Then create a Stacked Bar Chart or Clustered Bar Chart:

Eyelyn9_2-1654742481638.png

 

Or if it's not your expected output , Please share more details as suggested by @Vijay_A_Verma  to help us clarify your scenario.

Refer to:

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, 

 

This helped but it only lets me unpivot 2 columns. So when I unpivot Factory and Scenario, Scenario Dissapears and it shows me the total of all scenarios and I need a bar for ACT19, ACT20, ACT21 and son on. 

 

Let me show you my database.

natfg23_0-1654785843335.png

And I want to graph on X the Columns 1, 2, 3, 4,.... (months) and Y axis for Each factory, a bar for each scenario each Class.

natfg23_1-1654786039960.png

 This is the graph with only Factory and Scenario Unpivoted

@Anonymous @Vijay_A_Verma 

Vijay_A_Verma
Super User
Super User

I think some more explanation is needed. Are you looking to get a Sum of Jan, Feb, Mar for ACT 19, ACT 20 etc....If you can explain your requirements clearly, then that would be great.

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.

Top Solution Authors