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
Anonymous
Not applicable

Plot line charts per year

Hi Experts, 

 

This is a might be a very stupid question.

But can you guide me on how i can plot the below table in line chart..

 

Where each line represents a Year and the data is vlaue for each month?

 

YearJANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC
2017292929292929292929292929
2018292929292929292929292929
2019296688120149.5179208.5238267.5297326.5356
202029290000000000
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

First, unpivot this data. If this is in the current format.

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

The but month on-axis and year on the legend in line chart. That will show multiple line

Refer:https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-line-chart#add-additional-lines-to-the-ch...

 

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

First, unpivot this data. If this is in the current format.

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

The but month on-axis and year on the legend in line chart. That will show multiple line

Refer:https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-line-chart#add-additional-lines-to-the-ch...

 

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

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.