cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft
Microsoft

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

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

Do you have a visiual example of this?

Helpful resources

Announcements
Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Power BI Womens Summit 2021 768 x460.jpg

Interviews, learning sessions, allies, and more!

#PowerBIWomenSummit

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!