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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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