Nick Burns
Member
- Joined
- May 24, 2017
- Messages
- 162
- Reaction score
- 0
- Points
- 16
- Excel Version(s)
- Office 365
I currently have this as a multiple-conditional formula:
Is there a way to simplify that with List.Accumulate()? Hoping to be able to pass SAT-FRI and append it to "RegHours" and do the if/then for each column.
I have two additional columns to check if Overtime and DoubleTime have hours over 10.
Code:
= Table.AddColumn(AddedNoSpreadError, "RTError", each if [SatRegHours] > 8 then 1 else if [SunRegHours] > 8 then 1 else if [MonRegHours] > 8 then 1 else if [TueRegHours] > 8 then 1 else if [WedRegHours] > 8 then 1 else if [ThuRegHours] > 8 then 1 else if [FriRegHours] > 8 then 1 else null, type number)
Is there a way to simplify that with List.Accumulate()? Hoping to be able to pass SAT-FRI and append it to "RegHours" and do the if/then for each column.
I have two additional columns to check if Overtime and DoubleTime have hours over 10.