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
hgzelaya
Helper I
Helper I

Multiple Variables on X Axis

Hi,

 

im having trouble representing this same graph on power BI.

 

2017_11_09_15_28_51_Prueba12123_Excel.png

Thing is it won't let me because power BI is only able to use one variable (can't use many as shown above).

 

here's what it looks like on BI

2017_11_09_15_43_28_Reporte_Octubre_Power_BI_Desktop.png

which is understandable since one column has different number values. On simple words, i want to know if it's possible to do the same graph shown on excel on BI without adding another date column.

 

1 ACCEPTED SOLUTION

basically you need to unpivot your table and follow these steps

 

- goto edit query

- right click type field of your table

- select unpivot other columns

- change attribute column header to KWH

 

- close and apply

 

choose clustered column chart visual

 

- put kwh on axis

- put type on legend

- put value on value

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

9 REPLIES 9
parry2k
Super User
Super User

does your data table in powerbi looks like table you showed in 1st picture?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

yes it does, i am actually using that same table to create the visuals.

I believe there is need to change the data model which can be done in power itself. if you can share sample data in a sheet thru google drive or something like that



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

this is the ouput you are looking for, correcT?kwh.PNG



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

yes it is!

basically you need to unpivot your table and follow these steps

 

- goto edit query

- right click type field of your table

- select unpivot other columns

- change attribute column header to KWH

 

- close and apply

 

choose clustered column chart visual

 

- put kwh on axis

- put type on legend

- put value on value

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi @parry2k ,

 

When i finished ''- close and apply'' and then go back to chart, it shows error code below.

May i know how to fix it?

 

 

 

Re: Data refresh: OLE DB or ODBC error: Exception from HRESULT: 0x80040E1D

Thank you very much i've been trying to do this long time ago with past visuals. Worked like a charm!

 

 

2017_11_09_17_16_57_Reporte_Octubre_Power_BI_Desktop.png

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