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
prothinker
Frequent Visitor

Unable to create line graph visual

Hi

I was able to create a Table but not line graph. Could you pls tell me how to get my Date into the Axis field? The pbix file can be found here.

 

I would like my visual to look like this.

Image1.JPG

Thanks

 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

I looked at your pbix.  First change your x axis to Date instead of using the date hierarchy.

mahoneypat_0-1612914487734.png

Then you can change the x axis to categorical.  Change the format of the Date column in the ribbon if needed with that column selected.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

6 REPLIES 6
mahoneypat
Employee
Employee

I looked at your pbix.  First change your x axis to Date instead of using the date hierarchy.

mahoneypat_0-1612914487734.png

Then you can change the x axis to categorical.  Change the format of the Date column in the ribbon if needed with that column selected.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks Pat

 

I managed to change the Date from Date Hierarchy to Date but my graph is a straight line like this.

Image3.JPG

How do I get it to look like this without having to scroll?

Image1.JPG

I realized that it is a straight line because it is shown as Count. How do I get it to show Value rather than Count?

 

darentengmfs
Post Prodigy
Post Prodigy

Hi @prothinker 

 

Change your X Axis type from Continuous to Categorical.

darentengmfs_0-1612911533181.png

 

Hi

 

Thanks for your reply. I don't have this option.

 

Image2.JPG

Hi

 

I managed to find the Axis when I changed the visual to Line Chart.

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.