Hi All,
Hope you are doing well !!!
I need a small help in Power Query.
I want to make hourly TAT bucket based on column A*, currently, I am using lookup function in excel.
Could you please help me apply a similar formula/function in Power Query?
My Office Version - Office 365Pro.
The current formula I am using in excel:-
=LOOKUP(A2,{0,1,2,3,5,7,15},{"1. <=24","2. >24hrs <=48hrs ","3. > 48hrs <= 72hrs ","4. > 72hrs <= 120hrs","5.>120hrs<= 168hrs","6. > 7 days <=15 days ","7. >15 days"})
The required result using Power Query is as follows
Hope you are doing well !!!
I need a small help in Power Query.
I want to make hourly TAT bucket based on column A*, currently, I am using lookup function in excel.
Could you please help me apply a similar formula/function in Power Query?
My Office Version - Office 365Pro.
The current formula I am using in excel:-
=LOOKUP(A2,{0,1,2,3,5,7,15},{"1. <=24","2. >24hrs <=48hrs ","3. > 48hrs <= 72hrs ","4. > 72hrs <= 120hrs","5.>120hrs<= 168hrs","6. > 7 days <=15 days ","7. >15 days"})
The required result using Power Query is as follows
Book2 | ||||
---|---|---|---|---|
A | B | |||
1 | TAT in Hrs | Hrs Bucket | ||
2 | 26:52 | 2. >24hrs <=48hrs | ||
3 | 44:20 | 2. >24hrs <=48hrs | ||
4 | 7:01 | 1. <=24 | ||
5 | 332:53 | 6. > 7 days <=15 days | ||
6 | 25:54 | 2. >24hrs <=48hrs | ||
7 | 53:26 | 3. > 48hrs <= 72hrs | ||
8 | 1:07 | 1. <=24 | ||
9 | 3:18 | 1. <=24 | ||
10 | 74:04 | 4. > 72hrs <= 120hrs | ||
11 | 238:56 | 6. > 7 days <=15 days | ||
12 | 28:10 | 2. >24hrs <=48hrs | ||
13 | 22:52 | 1. <=24 | ||
14 | 51:52 | 3. > 48hrs <= 72hrs | ||
15 | 25:01 | 2. >24hrs <=48hrs | ||
16 | 21:25 | 1. <=24 | ||
17 | 25:11 | 2. >24hrs <=48hrs | ||
18 | 8:36 | 1. <=24 | ||
19 | 20:09 | 1. <=24 | ||
20 | 453:45 | 7. >15 days | ||
21 | 102:47 | 4. > 72hrs <= 120hrs | ||
22 | 7:28 | 1. <=24 | ||
23 | 68:00 | 3. > 48hrs <= 72hrs | ||
24 | 171:20 | 6. > 7 days <=15 days | ||
25 | 500:53 | 7. >15 days | ||
26 | 6:07 | 1. <=24 | ||
27 | 20:14 | 1. <=24 | ||
28 | 23:19 | 1. <=24 | ||
29 | 43:51 | 2. >24hrs <=48hrs | ||
30 | 100:38 | 4. > 72hrs <= 120hrs | ||
31 | 22:51 | 1. <=24 | ||
Sheet1 |