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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
PasiNiinikoski
Frequent Visitor

Time slots/stamp analyses

Hello masters of wisdom!

 

I have workers that youse a handheld machine to read barcodes. From that I have data that consist following information in separate columns:

 

Date Timestamp (hour:min:seconds) WorkerName BarcodeRead (OK)

 

I would like to have solution/visual to see  how a worker has spend their working day. Would love to see breaks (more than 30 minutes) and count them together.

 

I have used a basic ribbon cahrt and have not edited my data at all. This is one workers day. Kinda hard to read by eyes... I could probably ignore seconds to make the graph more coherent.

 

Thanx for any help,

 

Pasi

 

PasiNiinikoski_0-1629963352534.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PasiNiinikoski , Separate out time and date 

 

Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))

DateTime.Date([datetime])

Time = [datetime].Time
or
Time = Time(hour([datetime]),minute([datetime]),second([datetime]))

 

 

Join time with Time table and have 30 Min bucket there and date with date table

 

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

https://radacad.com/script-for-creating-time-table-in-power-bi-with-hours-minutes-and-seconds-bucket...

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

View solution in original post

2 REPLIES 2
PasiNiinikoski
Frequent Visitor

Thanx! I have read your both links and watched the videos in them and believe this is just what I needed. Will work on it soon and test different visuals also.

amitchandak
Super User
Super User

@PasiNiinikoski , Separate out time and date 

 

Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))

DateTime.Date([datetime])

Time = [datetime].Time
or
Time = Time(hour([datetime]),minute([datetime]),second([datetime]))

 

 

Join time with Time table and have 30 Min bucket there and date with date table

 

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

https://radacad.com/script-for-creating-time-table-in-power-bi-with-hours-minutes-and-seconds-bucket...

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.