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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Josemalive
New Member

Simple line chart with months in columns

Hi, 

 

I have a data source with the following shape:

 

KPIJANFEBMAR

APR

KPI1565

4

KPI2433

1

 

Im trying to create a Line chart showing the evolution of the KPI along the different months with a filter on KPI Name but I'm not succeeding on put the months in the X axis and values in the Y axis.

 

Here the current configuration that I have but I dont get a line chart but a chart with dots instead line for the selected KPI.

Captura.PNG

Could you tell me how I can set the months in the X axis so the graph will show a line with the evolution depending on the KPI chosen on the filter section?

 

Thanks.

Regards.

Jose.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Josemalive ,

Better you unpivot the data and then work on it

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @Josemalive ,

 

You to go to the query editor select the columns of the months and then unpivot them.

You can also choose the KPI column and unpivot all other, that way if your columns grow in months those new columns will also be unpivot, if you have more columns that you don't want to be unpivot also selected them alongside with KPI.

 

You will get 3 columns KPI / Attribute (month) / value then use the Attritbute as you x-axis, KPI on Legend and value on values

 

Check PBIX file attach.

 

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



amitchandak
Super User
Super User

@Josemalive ,

Better you unpivot the data and then work on it

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks a lot, I didnt know that Query "pipeline" was possible to tweak.

 

Really useful.

Regards.

Josema.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.