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
cjnad3
Regular Visitor

Line chart showing up as dots

I am trying to plot a line chart for an account over the previous 12 months or any number of months I need. 

This is the base data:

Capture.JPG

 

This is what the line chart shows:Capture1.JPG

 

 

I am not able to get the 12 month or 3 month trend. The data is formated as Decimal Number for all columns except the first one which is Text. 

 

I am guessing it is a problem with the formatting of the data. I could use some help in getting this right. 

1 ACCEPTED SOLUTION

@cjnad3 The date headers need to be row value pairs with the values. You can go into "edit queries" highlight the columns of dates and under "Transform" click "Unpivot columns". This will throw your dates in a single column and it's just a matter of putting those two columns in the line chart and it will work as expected.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

For the way i look it, you need to reshape the data, leave all dates in a column and all values in another column.

@cjnad3 The date headers need to be row value pairs with the values. You can go into "edit queries" highlight the columns of dates and under "Transform" click "Unpivot columns". This will throw your dates in a single column and it's just a matter of putting those two columns in the line chart and it will work as expected.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thanks! That worked. Is there a way to change the label from 1/1/2017 to Jan-17 without manually typing it out? 

Anonymous
Not applicable

In the Edit Queries you can do that transformation

 

Transform.png

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.