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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JKFX001
Regular Visitor

Bar Graph & Month Column Issues

Hello,

 

I have a table of items and their costs forecasted over the next 12 months.

I'm trying to show this data in a bar graph, however, since the months are represented in indivual columns, I'm having to put each month in the 'values' field, which comes out showing the bars super close together and no titles on the x axis.

 

JKFX001_2-1649281006524.png

 

JKFX001_0-1649280458333.png

I would like 12 separate bars, with the name of the month below on the x axis.

Maybe I'm using the wrong visual?

 

Since this data is coming from excel, I've tried creating a new table to link to Power BI. However, having months as columns is proving to be difficult to work with in both...

 

any tips are appreciated.

1 ACCEPTED SOLUTION
KerKol
Power Participant
Power Participant

You'll need to pivot your data in Power Query

 

How to Unpivot in Excel with Power Query + Video Tutorial (excelcampus.com)

 

Unpivot And Pivot Basics In Power BI - Query Editor Review - Enterprise DNA

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
KerKol
Power Participant
Power Participant

You'll need to pivot your data in Power Query

 

How to Unpivot in Excel with Power Query + Video Tutorial (excelcampus.com)

 

Unpivot And Pivot Basics In Power BI - Query Editor Review - Enterprise DNA

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




JKFX001
Regular Visitor

Thank you! that was super helpful and definetly acheived what I needed.

 

However, this month there were a few changes to the line descriptions and now I'm receiving errors in the unpivoted data and I'm not sure how to fix it.  Not sure why it just didn't update normally, are you familiar with any other videos that might address refreshing data or errors in unpivoted data?

KerKol
Power Participant
Power Participant

Then you can use a single date field to create your bar graph





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




KerKol
Power Participant
Power Participant

Any luck?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Users online (27)