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
Anonymous
Not applicable

Need help building continuous daily line chart

I am trying to build a continuous X axis for custom columns based on dates.

delete.png

But I cannot, it doesn't let me switch to continuous.

 

 

Now I did see this solution, but as you see I did create and connect a separate table for dates which covers all dates in data table. And still I cannot change it to continuous X axis.

My end goal is to build a line chart for daily trend with around 1-3 month time horizon.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous  - I think you would benefit from a Date Dimension table. Please see attached for an example and try the following:

  1. Add your data to the attached file
  2. Create a relationship between the 2 tables
  3. Create your line chart with the Date column from the Date table on the X Axis.
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Anonymous  - If you can't do continuous, it's probably because the data type is text. You can change the data type to date:

  1. Click the date column.
  2. Click the Modelling tab.
  3. Select the date datatype.

Data Type.PNG

I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson
Anonymous
Not applicable

Thank you for hint.

Probably this won't work well for me, as if I change it to date format it defeats the purpose of my formula to make day-month format and pull appropriate data. 

The way Power BI behaves when you use dates it takes absolutely all data for required category ignoring actual dates. For example ,if you use month ; day axis it will take all data for month regardless the year and will not show day. This is exactly the reason I use custom columns.

 

Anonymous
Not applicable

@Anonymous  - I think you would benefit from a Date Dimension table. Please see attached for an example and try the following:

  1. Add your data to the attached file
  2. Create a relationship between the 2 tables
  3. Create your line chart with the Date column from the Date table on the X Axis.
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson

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.