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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AndrewWstry
Frequent Visitor

Show drivers actively on a job by 15 minute increments on a chart

Hello,

 

I have timestamps of when drivers accepted a job and completed a job. However I am needing to create a chart with 15 minute increments showing the total number of drivers that were actively on a job. Basically any time between the start and finish of a job I would want to see that driver counted on my chart. Any tips for doing this? 

 

From the Accepted Time to Completed time I would expect this driver to be counted as a working driver on the chart for 5:30, 5:45, 6:00. But I dont not know how to achieve this with just timestamps.

AndrewWstry_0-1689868927615.png

 

Example chart:

AndrewWstry_1-1689869027695.png

 

Thank you!

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi  @AndrewWstry 

You can create a table

Sample data 

vxinruzhumsft_0-1690165409720.png

 

Then you can create a table

 

Table 3 = GENERATESERIES(MAX('Table'[Column2]) , MAX('Table'[Column1]) , 1/24/2/2)

 

Output

vxinruzhumsft_1-1690165444580.png

vxinruzhumsft_2-1690165578758.png

 

 

And you can refer to the following link.

Creating a List of Numbers or Dates in Power BI using GenerateSeries Function in DAX - RADACAD

 

Best Regards!

Yolo Zhu

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

2 REPLIES 2
foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

v-xinruzhu-msft
Community Support
Community Support

Hi  @AndrewWstry 

You can create a table

Sample data 

vxinruzhumsft_0-1690165409720.png

 

Then you can create a table

 

Table 3 = GENERATESERIES(MAX('Table'[Column2]) , MAX('Table'[Column1]) , 1/24/2/2)

 

Output

vxinruzhumsft_1-1690165444580.png

vxinruzhumsft_2-1690165578758.png

 

 

And you can refer to the following link.

Creating a List of Numbers or Dates in Power BI using GenerateSeries Function in DAX - RADACAD

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.