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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Super User
Super User

Any luck?





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

Proud to be a Super User!




KerKol
Super User
Super User

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
Super User
Super User

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!




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?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors