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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.