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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Mramono
Helper III
Helper III

Shifted Calendar Date and Time

I have normal calendar table and Time table, although my Fact Table has date and time in different columns, my day starts at 6am and ends at 6am the following day. The first production hour of a day is from 6am to 7am, so 07:00 shows production from 6am to 7am

I need a calendar table and time table that can be able to plot my production in terms of production date when i choose and calendar date when i choose that option as well. Knowing production date start from 6am to 6am the next day and calendar date starts from 12am to 23pm. Also tracking Shifts (Morningshift 06:00 to 14:00, Afternoonshift 14:00 to 22:00, Nightshift 22:00 to 06:00). The aim is to be able to slice production in terms of date and time (hours) 

 

Calendar DateProduction DateTimeShiftTons%Rec
28-Jul-2528-Jul-2507:00NS905

61.25

28-Jul-2528-Jul-2508:00NS112361.25
28-Jul-2528-Jul-2509:00NS119864.04
28-Jul-2528-Jul-2510:00NS111764.04
28-Jul-2528-Jul-2511:00NS113764.36
28-Jul-2528-Jul-2512:00NS115264.36
28-Jul-2528-Jul-2513:00NS111063.92
28-Jul-2528-Jul-2514:00NS112863.92
28-Jul-2528-Jul-2515:00NS114061
28-Jul-2528-Jul-2516:00NS109463.5
28-Jul-2528-Jul-2517:00NS112364.85
28-Jul-2528-Jul-2518:00NS113564.85
28-Jul-2528-Jul-2519:00NS112064.35
28-Jul-2528-Jul-2520:00NS109664.35
28-Jul-2528-Jul-2521:00NS104264.58
28-Jul-2528-Jul-2522:00NS100864.58
28-Jul-2528-Jul-2523:00NS104564.04
29-Jul-2528-Jul-2500:00NS101564.04
29-Jul-2528-Jul-2501:00NS50463.83
29-Jul-2528-Jul-2502:00NS108963.83
29-Jul-2528-Jul-2503:00NS113764.06
29-Jul-2528-Jul-2504:00NS122664.06
29-Jul-2528-Jul-2505:00NS125064.07
29-Jul-2528-Jul-2506:00NS124964.07
29-Jul-2529-Jul-2507:00NS111464.2
29-Jul-2529-Jul-2508:00NS81764.2
29-Jul-2529-Jul-2509:00NS107263.53
29-Jul-2529-Jul-2510:00NS110063.53
29-Jul-2529-Jul-2511:00NS111564.22
29-Jul-2529-Jul-2512:00NS120064.22
29-Jul-2529-Jul-2513:00NS115363.79
29-Jul-2529-Jul-2514:00NS115163.79
29-Jul-2529-Jul-2515:00NS113463.41
29-Jul-2529-Jul-2516:00NS110763.41
29-Jul-2529-Jul-2517:00NS115863.78
29-Jul-2529-Jul-2518:00NS118763.78
29-Jul-2529-Jul-2519:00NS61663.41
29-Jul-2529-Jul-2520:00NS063.41
29-Jul-2529-Jul-2521:00NS063.78
29-Jul-2529-Jul-2522:00NS93463.78
29-Jul-2529-Jul-2523:00NS110463.43
30-Jul-2529-Jul-2500:00NS13063.43
30-Jul-2529-Jul-2501:00NS109963.79
30-Jul-2529-Jul-2502:00NS123563.79
30-Jul-2529-Jul-2503:00NS114063.92
30-Jul-2529-Jul-2504:00NS104763.92
30-Jul-2529-Jul-2505:00NS124363.14
30-Jul-2529-Jul-2506:00NS125063.14
30-Jul-2530-Jul-2507:00NS73763.32
30-Jul-2530-Jul-2508:00NS136663.32
30-Jul-2530-Jul-2509:00NS139263.34
30-Jul-2530-Jul-2510:00NS121663.34
30-Jul-2530-Jul-2511:00NS95264.92
30-Jul-2530-Jul-2512:00NS85864.92
30-Jul-2530-Jul-2513:00NS138764.46
30-Jul-2530-Jul-2514:00NS147364.46
30-Jul-2530-Jul-2515:00NS43963.94
30-Jul-2530-Jul-2516:00NS24463.94
30-Jul-2530-Jul-2517:00NS57164.63
30-Jul-2530-Jul-2518:00NS

864

64.63
30-Jul-2530-Jul-2519:00NS43665.24
30-Jul-2530-Jul-2520:00NS99665.24
30-Jul-2530-Jul-2521:00NS105264.28
30-Jul-2530-Jul-2522:00NS79664.28
30-Jul-2530-Jul-2523:00NS121065.09
30-Jul-2530-Jul-2500:00NS144865.09
31-Jul-2530-Jul-2501:00NS145263.98
31-Jul-2530-Jul-2502:00NS25363.98
31-Jul-2530-Jul-2503:00NS105364.92
31-Jul-2530-Jul-2504:00NS109964.92
31-Jul-2530-Jul-2505:00NS79064.7
31-Jul-2530-Jul-2506:00NS88564.7
1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community Support

Thankyou, @Irwan, for your response.

Hi Mramono,

We appreciate your inquiry to the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached a screenshot and a sample PBIX file that may help resolve the problem:

vpnarojumsft_0-1755631915281.png

We hope the information provided is helpful. If you have any further queries, please feel free to contact the Microsoft Fabric Community.

Thank you.

View solution in original post

7 REPLIES 7
v-pnaroju-msft
Community Support
Community Support

Hi Mramono,

Thank you for your followup.

The difference in sorting arises from how the HourLabel field is handled. In my sample file, the HourLabel column is sorted by a numeric ProdHourSort column (0–23). In your file, HourLabel is a text field only, so Power BI sorts it alphabetically, which explains the apparently random order.

Please follow the steps below to resolve the issue:

  1. Select the HourLabel column in the Fields pane.
  2. On the ribbon, go to Column tools, select Sort by Column, and choose ProdHourSort.
  3. Use HourLabel on the X-axis of the chart.

Please find attached a screenshot to assist you in resolving the issue:

vpnarojumsft_0-1757419103601.png
We hope  that the information provided will help to resolve the problem. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Thankyou, @Irwan, for your response.

Hi Mramono,

We appreciate your inquiry to the Microsoft Fabric Community Forum.

Based on my understanding of the issue, please find attached a screenshot and a sample PBIX file that may help resolve the problem:

vpnarojumsft_0-1755631915281.png

We hope the information provided is helpful. If you have any further queries, please feel free to contact the Microsoft Fabric Community.

Thank you.

Hi @v-pnaroju-msft 

 

I have tried to replecate the file you send me. but for some reason i am not getting the same sorting of hours like the one you send me. I'm not sure if there is a particular sorting i am missing. my HourLabel on the x-axis seem to be random. How can i resolvel this. The link below is my Powerbi File

 

https://drive.google.com/file/d/10spLazfjkhPhd-TpZ5wyDQV8Rp8-grxg/view?usp=sharing 

 

Much appreciated!

Mramono

Syndicate_Admin
Administrator
Administrator

Hi, thank you so much for the help. I hope to have a time series display and use both the production date and the shift period as the cutter as you have shown me. The idea is to have the hourly view of the data for a particular production date. The production day is not the same as the calendar day. I'm not sure if the graph below can help clarify it.

Mramono_0-1755612424753.png

Mramono
Helper III
Helper III

Thanks again, just to clarify some more

 

Production Date is not the same as Calendar date. There is an overlap between the two. On the Production date the date changes at 6am (06:00) as opposed to Calendar date where the date changes at 12am (00:00)

 

Can we modify the calendar table to reflect PRODUCTION DATE not CALENDAR DATE.

 

Production date overlaps with Calender date (by shifting calendar date by 6hrs)

Irwan
Super User
Super User

hello @Mramono 

 

i might be misunderstood, but from your description, i think you can use production date as date slicer selection.

 

as for tracking shift, perhaps you want to create another calculated column to define those shift time.

something like below.

Irwan_0-1755560037370.png

 

then you can plot into a visual you prefered.

Irwan_1-1755560083714.png

 

 

Hope this will help.

Thank you.

Hi Irwan, thank you very much for the assistance. I am hoping to have a time series visualisation and use both the production date and shift period as the slicer like you have shown me. The idea is to have the hourly view of the data for a particular production date. Production day is not the same as calendar day. Not sure if the graph below can help clarify.

 

Mramono_0-1755588841766.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors