I am working on a report where the data looks like below (sample data):
Services : JAS, GAF and YAG fall under the profit center "ABC" and HIG and OPD falls under "XYZ"
Date | Profit Center | Service |
---|
Date | 1/1/24 | Profit Center | ABC | Service | |
---|
Date | 1/1/24 | Profit Center | | Service | JAS |
---|
Date | 1/1/24 | Profit Center | | Service | GAF |
---|
Date | 1/1/24 | Profit Center | | Service | YAG |
---|
Date | 1/1/24 | Profit Center | XYZ | Service | |
---|
Date | 1/1/24 | Profit Center | | Service | HIG |
---|
Date | 1/1/24 | Profit Center | | Service | OPD |
---|
I want my final output to look like below, there should be a profit center for each service in each row.
Date | Profit Center | Service |
---|
Date | 1/1/24 | Profit Center | ABC | Service | XCS |
---|
Date | 1/1/24 | Profit Center | ABC | Service | JAS |
---|
Date | 1/1/24 | Profit Center | ABC | Service | GAF |
---|
Date | 1/1/24 | Profit Center | ABC | Service | YAG |
---|
Date | 1/1/24 | Profit Center | XYZ | Service | HIG |
---|
Date | 1/1/24 | Profit Center | XYZ | Service | OPD |
---|
Can someone please guide me how can we do that in domo etl ? I know that window functions (lag,lead) aren't supported in Domo's mysql, so trying to find a solution with magic etl.
Thankyou