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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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