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
benjaminhoang
Helper III
Helper III

Can you fix this line graph?

Hello everyone. I have this very difficult problem for myself anways. I have a line graph shown below which shows 14 day of previous data from today. With today being the 9 it is showing the 25 of last month and 9 days into this month and it looks ugly. Is there anyway to show it in way that would show the days consecutively like 25,26,27,28,29,30,1,2,3,4,5,6,7,8,9  with the last month and this month in mind.

Capture.JPG

2 ACCEPTED SOLUTIONS

Capture.JPGReceive this error

View solution in original post

Hi @benjaminhoang,

 

  1. Create a date dimention table using CALENDAR() function to list unique dates.
  2. Establish a one to many relationship between date table and source table.
  3. Apply the steps mentioned in my original post to date dimention table.
  4. Add [Day] field from date dimention table X-axis of line chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @benjaminhoang,

 

Suppose there existing a [Date] column in dataset.

 

You need to create an extra column to list all day numbers whose data type should be converted to "Text". Also, select the [Day] column, change the sort by column from default setting to [Date].

Day = Test2[Date].[Day]

1.PNG

 

Then, you can place [Day] into X-axis.

2.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Capture.JPGReceive this error

Hi @benjaminhoang,

 

  1. Create a date dimention table using CALENDAR() function to list unique dates.
  2. Establish a one to many relationship between date table and source table.
  3. Apply the steps mentioned in my original post to date dimention table.
  4. Add [Day] field from date dimention table X-axis of line chart.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Do you have a visiual example of this?

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.