I've got a table that has start and stop times by employee, hourly rate, and location.
I'd like to calculate my employee cost (in 15 minute increments) throughout the day. As a caveat, there are different start and stop times throughout the day, i.e. people clock in differently
@ARibaudo,Please share sample data of your table and post expected result here.Regards,Lydia
My apologies, the title should be Measuring Intervals - not sure how that happened.
These are the steps I followed but can't figure out how to do it by date:
Step 1) built an [Times] Table that has all the intervals in 15 minute increments,
Existing [Data] Table that has username, date (not unique value), start time, stop time:
Expanded Table = SELECTCOLUMNS( FILTER( CROSSJOIN(Data,Times), [Start Time]<='Times'[Interval] && 'Data'[End Time] >'Times'[Interval] ), "Employee",[username], "Time Inteval",[Interval], "Total Pay",[Pay] )
The problem is I can't seem to get it to slice by date. Thanks, Andrew
@ARibaudo,Where is Pay field in your table? Calculated table will not response to slicers. See https://community.powerbi.com/t5/Community-Knowledge-Base/Calculated-Column-Table-Change-Dynamically... .Regards,Lydia
I first concatenated your date and time
then converted it to date time from modeling
and figured out difference in time, in minutes, with datediff
divide the value with 15 and round up now multiply this with unit pay amount
all of this done in columns so you can sum up easily.
Start Dt_Time = Table1[Date] & " " & Table1[Start] // for concatination
I didn't include it. It is a separate table [Employee List] that shows hourly pay rates
Making a relationship between two tables on employee code/ name should work.
If not pls share your tables structure with sample data and expected output.
Hi I am new to Power BI as well and have a very similar questions. I am trying to link my hourly sales to the hourly labor expense. The labor information that I have comes as follows:
Date Name Clock In Time Clock out Time
Do you how I can be able to do this ?
Share sample data for both the tables and the result you are expecting.
Join us in the third Triple A event!
It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.
Make sure you didn't miss any of the things that happened in the community in January!