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! Request now

Reply
niyati_61
Helper III
Helper III

Time Table

Hello all, 

 

I'm working with live data, and as seen in the TimeStamp Column here, On 1 Day, every 5 seconds the sensor generates data.
Table Name = SensorData

niyati_61_0-1636603642210.png

 

I have created a normal Date Table (As shown below)

niyati_61_2-1636603829648.png

 

How to I create a Time Table for displaying Time like this? I need a Date+Time Column in this Time Table we will create similar to the SensorData table, so we can connect the two tables) Also, at 5 second intervals?

Also, how will the Date Table and Time Table be connected in the data model with this main Source Data?

Kindly need assistance on the matter. Thank you in advance!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @niyati_61 

 

You can extract date value and time value from TIMESTAMP column into two new columns in SensorData table. Change their data types to Date type and Time type accordingly. 

Date = DATEVALUE('SensorData'[TIMESTAMP])

Time = TIMEVALUE('SensorData'[TIMESTAMP])

 

Create a time table with below DAX. I only include time values in this table and change its data type to Time type. 

TimeTable = GENERATESERIES(TIMEVALUE("00:00:00"),TIMEVALUE("23:59:59"),5/(60*60*24))

21111703.jpg

 

When you create relationships, you can link Date table to SensorData table on Date column and link Time table to SensorData table on Time column. Download the attached pbix for details. Hope this helps. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @niyati_61 

 

You can extract date value and time value from TIMESTAMP column into two new columns in SensorData table. Change their data types to Date type and Time type accordingly. 

Date = DATEVALUE('SensorData'[TIMESTAMP])

Time = TIMEVALUE('SensorData'[TIMESTAMP])

 

Create a time table with below DAX. I only include time values in this table and change its data type to Time type. 

TimeTable = GENERATESERIES(TIMEVALUE("00:00:00"),TIMEVALUE("23:59:59"),5/(60*60*24))

21111703.jpg

 

When you create relationships, you can link Date table to SensorData table on Date column and link Time table to SensorData table on Time column. Download the attached pbix for details. Hope this helps. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

PhilipTreacy
Super User
Super User

Hi @niyati_61 

 

Download example PBIX file

 

You don't need to create anything special in your Date Table, or create a Time Table, just because your timestamps are at 5 second intervals.  Just plot the data and it will plot ok, Power BI will work it out.

timestamp.png

 

You can create a relationship between your Date Table [Date] column and the data table [Timestamp] column like so

relation.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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