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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

trend line visual axis for date not showing the correct format

Hi

 

Ive created a simple trend line that shows the count values and date as the axis. i then created a filter for months coming from a date table. this date table is connected to the main table. once i filter on the month as a single month  selected the value of the trend shows date time instead of the expected date.  ive checked the formats and they are all mm/dd/yyyy

 

ohraytyroo_1-1597099197272.png

 

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , change the data format

Option 1: https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

Option 2: Column/Measure Tools

Data Format New Rib.png

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

HI 

 

Amit ive checked and they all have the same format mm/dd/yy. im not sure why when i select a specific month it includes the time on the visual but the formatting shouldnt include it.

Hi @Anonymous ,

 

1. Check the date format in both the tables: Main table and date table; They should be the same

2. Try to create 2 new columns in both the tables for this requirement:

2.1: A new date column with format specified using below DAX:

Formatted_Date = FORMAT(Sheet1[date],"MM/DD/YY")
 
2.2: A new month column for slicer/filtering with below DAX:
Formatted_Month = FORMAT(Sheet1[date],"MMM")
 
Now take the 2nd column in slicer and 1st column in Line chart's X-Axis.
 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

@Anonymous this is the default behaviour, you will see time if you have few dates on the x-axis,  nothing you can do about it.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,
I'm not very aware of your requirement, did you want to get value from year start till selected month? Or want to get value after selected month?
If possible ,could you please upload some detailed data samples and expected output?
Please do mask sensitive data before uploading.
 
Best Regards,
Eyelyn Qin
Anonymous
Not applicable

Hi

so basically whats happening is a made a date table with dates and months columns. 

on the date table is formatted like below.

 

ohraytyroo_0-1597156051763.png

 

I have this relationship between dates and main table.

i made a filter for months and when all of the months are selected the trend line visual looks ok. looks something like the below

 

ohraytyroo_1-1597156126319.png

 

but when i filter on a specific month.  say august. the resulting visual doesnt jsut show the dates but intetead it includes a time formatting. my intended result should just be mm/dd/yyy but im getting mm/dd/yyyy hhh:mm see below

 

ohraytyroo_3-1597157548710.png

 ijust need dates theres without the time.

 

ive checked teh formatting and they are all the same mm/dd/yy so not sure whats happening.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.