cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
beekee
Helper IV
Helper IV

Continuous line chart showing date and time

Hi All,

 

I have a line chart that I would like to set to Continuous. However PBI is showing me Date and Time for the x-axis. Is there a way to show only dates in the x-axis? I.e. 2 Mar, 3 Mar, 4 Mar

 

x-axis is showing Date and Time now:

beekee_0-1596444737838.png

 

 

Regards,

Bee Kee

 

1 ACCEPTED SOLUTION
tex628
Super User
Super User

Try creating a calculation column to convert the value to text:

Column = FORMAT('Calendar'[Date] , "D MMM")


/ J 


Connect on LinkedIn

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@beekee , you have x-axis type as categorical, try that

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!
tex628
Super User
Super User

Try creating a calculation column to convert the value to text:

Column = FORMAT('Calendar'[Date] , "D MMM")


/ J 


Connect on LinkedIn

This will help to remove the time although it is not continuous. I think this is fine. Thanks!

If you create a new calendar table which you then connect with a relationship you should be able to maintain the continuous x-axis! 

Br,
J


Connect on LinkedIn
nandic
Memorable Member
Memorable Member

@beekee ,
Best practice is to separate date/time column in two columns because of performance.
If you don't need any analytics by time, in Power Query split column and keep only Date.
Continuos type: select chart > x axis > type  = continuos.

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!