Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
I am struggling in creating a grouped field.
For example: I have a status column, where I have
In progress with management
In progress with the team
Provided
Delivered
In review
I need to create a separate column, where I would only have
In progress (which includes: In progress with management, In progress with the team,In review)
Delivered (which includes: Provided and Delivered)
Please advise on the best way to achieve it.
Thank you-
Alternatively, you can use ApplyMap or a simple Inline load to do the same thing.
LOAD * INLINE [
status, New_Status
In progress with management, In Progress
In progress with the team, In Progress
Provided, Delivered
Delivered, Delivered
In review, In Progress
];
or
MappingTable:
Mapping
LOAD * INLINE [
status, New_Status
In progress with management, In Progress
In progress with the team, In Progress
Provided, Delivered
Delivered, Delivered
In review, In Progress
];
FactTable:
LOAD status,
ApplyMap('MappingTable', status) as New_Status
FROM Source;
Try like this:
LOAD status,
If(Match(status, 'In progress with management', 'In progress with the team', 'In review'), 'In Progress', 'Delivered') as New_Status
FROM Source;
Maybe something like this:
if(match(Status, 'Provided','Delivered'), 'Delivered', 'In progress') as [Status SubType]
- Marcus
Maybe like
LOAD Status,
If(Status LIKE 'In*', 'In progress', 'Delivered') as NewStatus,
....
Alternatively, you can use ApplyMap or a simple Inline load to do the same thing.
LOAD * INLINE [
status, New_Status
In progress with management, In Progress
In progress with the team, In Progress
Provided, Delivered
Delivered, Delivered
In review, In Progress
];
or
MappingTable:
Mapping
LOAD * INLINE [
status, New_Status
In progress with management, In Progress
In progress with the team, In Progress
Provided, Delivered
Delivered, Delivered
In review, In Progress
];
FactTable:
LOAD status,
ApplyMap('MappingTable', status) as New_Status
FROM Source;
what if i have a third group In Planning
Extend the if statement to the third group. or use ApplyMap as you can see above
It worked! Thank you!
Awesome