Forum Discussion
Coryanthony
3 years agoHelper III
Time Intellegence logic
Hello, I need assistance adding a time intelligence function to my mesure. Please see measure below, these amount applies if prior to 12/1/2022. If on or after 12/1/2022, the amount increase. I am...
Coryanthony
3 years agoHelper III
Hi amitchandak - thank you for your response.
my current measure applies for all dates in calendar table. I need to add to the measure. if date is before 12/1/22, then my current measure applies. But if the date is on or after 12/1/2022, then i need to edit the rates. the rates increased for dates on or after 12/1/22.
Allowed OT $ =
SumX(SUMMARIZE(
Timesheet,
Timesheet[Employee ID],Timesheet[Date],Timesheet[Holiday],Timesheet[Day of Week],
"DailyHrs",sum(Timesheet[Number (unit)])),
SWITCH(TRUE,
[DailyHrs]>=4 && [DailyHrs]<8 && Timesheet[Holiday] = "Yes" ,12,
[DailyHrs]>=8 && Timesheet[Holiday] = "Yes" ,32,
[DailyHrs]>=10 &&'Timesheet'[Day of Week]<=4,20,
[DailyHrs]>=4 && [DailyHrs]<8 && 'Timesheet'[Day of Week]>=5,12,
[DailyHrs]>=8 && 'Timesheet'[Day of Week]>=5,32,
0
))
thx
3 years agoFrequent Visitor
found a solution yet ?