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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mramono
Regular Visitor

Data table arranged in Date in one column and time in another column

I have a table with (Date : Time : Value) date in days 08/08/2025, Time in hours 00:00 and the values for that particular time. How can i set up my power bi model so i can plot date and time vs the Value

Production DateTimeValue (-250um%)
01-Jul-2513:00:0074.12
01-Jul-2514:00:0074.12
01-Jul-2515:00:0073.46
01-Jul-2516:00:0073.46
01-Jul-2517:00:0064.11
01-Jul-2518:00:0064.11
01-Jul-2519:00:0064.11
01-Jul-2520:00:0064.11
01-Jul-2521:00:0059.2
01-Jul-2522:00:0059.2
01-Jul-2523:00:0067.73
01-Jul-2500:00:0067.73
01-Jul-2501:00:0053.18
01-Jul-2502:00:0053.18
01-Jul-2503:00:0060.58
01-Jul-2504:00:0060.58
01-Jul-2505:00:0064.81
01-Jul-2506:00:0064.81
02-Jul-2507:00:0065.54
02-Jul-2508:00:0065.54
02-Jul-2509:00:0064.81
02-Jul-2510:00:0064.81
02-Jul-2511:00:0065.54
02-Jul-2512:00:0065.54
02-Jul-2513:00:0068.93
02-Jul-2514:00:0068.93
02-Jul-2515:00:0059.06
02-Jul-2516:00:0059.06
02-Jul-2517:00:0049.83
02-Jul-2518:00:0049.83
02-Jul-2519:00:0039.03
02-Jul-2520:00:0039.03
02-Jul-2521:00:0059.47
1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@Mramono 

I would suggest you to

1. Choose appropriate data types before loading the Date, Time and Value columns into power bi.

2. Create a Date table with all the necessary columns that you would need for your reporting purpose

3. Create a one to many relationship between Date table and your fact table where you have the actual data.

4. Create a trend line chart with "Date" and "Time" column on X Axis and value on the Y axis fields.

 

Note:

If you also want to create a Time table, then you need to aggregate your data at hour level, or 30, 20 or 10 mins window buckets. In my opinion unless you want to perform some comlex time based calculations, Time table is not required.

 

 

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

3 REPLIES 3
tharunkumarRTK
Super User
Super User

@Mramono 

I would suggest you to

1. Choose appropriate data types before loading the Date, Time and Value columns into power bi.

2. Create a Date table with all the necessary columns that you would need for your reporting purpose

3. Create a one to many relationship between Date table and your fact table where you have the actual data.

4. Create a trend line chart with "Date" and "Time" column on X Axis and value on the Y axis fields.

 

Note:

If you also want to create a Time table, then you need to aggregate your data at hour level, or 30, 20 or 10 mins window buckets. In my opinion unless you want to perform some comlex time based calculations, Time table is not required.

 

 

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

@tharunkumarRTK thank you for the solution, i finally could bring my data into graphs by using both the date and time on the x-axis as you suggested. Unfortunately I still need to do complex time based calculations hence i think i still need to use timetable.

 

Although is now working, using calendar table for dates and time table for time, i have a challege to shift both my calenda date and time table. My day starts at 6am in the morning and end at 5:59am the following day. E.g for the Date 17th August, my day starts at 6:00am 17th August and ends at 05:59am 18th August and so forth. 

 

Is it possible to set up the calender table and time table to reflect this shifted time? How can i go about it. Currently my hourly graphs starts from 00:00 to 23:00 each day. I want my hourly graphs to start from 06:00 to 05:00.

Royel
Responsive Resident
Responsive Resident

Hi @Mramono  You can simply add the date and time columns together, i am assuming column Date is a date data type and Time is a time data type. 

DateTime = [Production Date] + [Time]

 

If this method not workes, try this solution

DateTime = [Production Date] & " " & TIME(HOUR([Time]), MINUTE([Time]), SECOND([Time]))

 

Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors