Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi can anyone help with a quick script to convert original table into New table, essentially create a new row for each value in the reduction field .
Original table | ||
ACCESS | USERID | REDUCTIONFIELD |
USER | DOMAIN\USERID1 | VALUE1/VALUE2/VALUE3 |
USER | DOMAIN\USERID2 | VALUE1/VALUE2 |
New Table | ||
ACCESS | USERID | REDUCTIONFIELD |
USER | DOMAIN\USERID1 | VALUE1 |
USER | DOMAIN\USERID1 | VALUE2 |
USER | DOMAIN\USERID1 | VALUE3 |
USER | DOMAIN\USERID2 | VALUE1 |
USER | DOMAIN\USERID2 | VALUE2 |
You are working too hard. 🙂 Use the SubField() function to generate a new row for REDUCTIONFIELD value.
table2:
LOAD
"ACCESS",
"USERID",
SubField(REDUCTIONFIELD, '/')
FROM [lib://loop/loop.xlsx]
(ooxml, embedded labels, table is Sheet2);
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
You are working too hard. 🙂 Use the SubField() function to generate a new row for REDUCTIONFIELD value.
table2:
LOAD
"ACCESS",
"USERID",
SubField(REDUCTIONFIELD, '/')
FROM [lib://loop/loop.xlsx]
(ooxml, embedded labels, table is Sheet2);
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
Yes of course .... thank you. i was going off tangent