<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782530#M1209668</link>
    <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    USERID, Node1, Node2, Node3, Node4, Node5, Node6, Node7, Node8, Node9, SAPPROFITCENTER
    Joe, , , , , N5, , , , , 
    Bob, , , , , , , , , , 134331
    Sam, , , ,N4, , , , , , 134331
];

Left Join(tab1)
LOAD USERID, Pick(Match(-1,Len(Node1)&amp;gt;0,Len(Node2)&amp;gt;0,Len(Node3)&amp;gt;0,Len(Node4)&amp;gt;0,Len(Node5)&amp;gt;0,
Len(Node6)&amp;gt;0,Len(Node7)&amp;gt;0,Len(Node8)&amp;gt;0,Len(Node9)&amp;gt;0),1,2,3,4,5,6,7,8,9) As HighNode
Resident tab1;

Left Join(tab1)
LOAD USERID, IterNo() As Key
Resident tab1
While IterNo()&amp;lt;=HighNode;

M1:
LOAD * INLINE [
    Node1, Node2, Node3, Node4, Node5, Node6, Node7, Node8, Node9
    N1, N2, N3, N4, N5, N6, N7, N8, N9
];

M1X:
CrossTable(Node,mValue)
LOAD 1, * Resident M1;

map1:
Mapping
LOAD * INLINE [
    Node, Key
    Node1, 1
    Node2, 2
    Node3, 3
    Node4, 4
    Node5, 5
    Node6, 6
    Node7, 7
    Node8, 8
    Node9, 9
];

tab2:
LOAD Distinct USERID
Resident tab1;

Left Join(tab2)
LOAD ApplyMap('map1',Node) As Key, Node, mValue Resident M1X;

Left Join(tab1)
LOAD * Resident tab2;

tab3:
Generic
LOAD USERID, SAPPROFITCENTER, Node, mValue
Resident tab1;

Drop Table M1,  M1X,  tab1, tab2;&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 14 Feb 2021 03:19:46 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-02-14T03:19:46Z</dc:date>
    <item>
      <title>Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782306#M1209627</link>
      <description>&lt;P&gt;Good morning everyone,&lt;/P&gt;&lt;P&gt;Need a little logic help.&amp;nbsp; I have a user QVD which I use for section access.&amp;nbsp; The user file has Nodes 1 - 9 in it but only 1 of the nodes will be populated.&amp;nbsp; I have another qvd which has the Nodes in it with Nodes 1 - 9 populated.&amp;nbsp; I need to fill in the blanks.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;USERID&amp;nbsp; Node1&amp;nbsp; &amp;nbsp;Node2&amp;nbsp; Node3&amp;nbsp; Node4&amp;nbsp; Node5&amp;nbsp; Node6&amp;nbsp; Node7&amp;nbsp; Node8&amp;nbsp; Node9&amp;nbsp; SAPPROFITCENTER&lt;/P&gt;&lt;P&gt;JOE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N5&lt;/P&gt;&lt;P&gt;BOB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 134331&lt;/P&gt;&lt;P&gt;NODE QVD&lt;/P&gt;&lt;P&gt;Node1&amp;nbsp; &amp;nbsp; Node2&amp;nbsp; &amp;nbsp; Node3&amp;nbsp; &amp;nbsp;Node4&amp;nbsp; &amp;nbsp;Node5&amp;nbsp; &amp;nbsp;Node6&amp;nbsp; &amp;nbsp;Node7&amp;nbsp; &amp;nbsp;Node8&amp;nbsp; &amp;nbsp;Node9&amp;nbsp; &amp;nbsp;SAPPROFITCENTER&lt;/P&gt;&lt;P&gt;N1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 132331&lt;/P&gt;&lt;P&gt;So for Joe I need to populate N1 - N4&amp;nbsp; and for Bob do nothing.&lt;/P&gt;&lt;P&gt;Here is the script I am using.&amp;nbsp; Any help would be appreciated....sort of under the gun.&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;SAUsers:&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6,&lt;BR /&gt;NODE7,&lt;BR /&gt;NODE8,&lt;BR /&gt;NODE9,&lt;BR /&gt;SAPROFITCENTER&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;CoHier:&lt;BR /&gt;LOAD&lt;BR /&gt;Upper(Node1) as NODE1,&lt;BR /&gt;Upper(Node2) as NODE2,&lt;BR /&gt;Upper(Node3) as NODE3,&lt;BR /&gt;Upper(Node4) as NODE4,&lt;BR /&gt;Upper(Node5) as NODE5,&lt;BR /&gt;Upper(Node6) as NODE6,&lt;BR /&gt;Upper(Node7) as NODE7,&lt;BR /&gt;Upper(Node8) as NODE8,&lt;BR /&gt;Upper(Node9) as NODE9,&lt;BR /&gt;ParentGroup,&lt;BR /&gt;Path,&lt;BR /&gt;NodeIDCostCenterName,&lt;BR /&gt;ParentIDGroup,&lt;BR /&gt;Node&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\ExpandedNodes.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;Inner Join (CoHier)&lt;BR /&gt;LOAD NodeIDCostCenterName,&lt;BR /&gt;[Profit Center],&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;[Profit Center Name],&lt;BR /&gt;[PC Desc]&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\CostCenterGroupHierarchy.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782306#M1209627</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2021-02-12T13:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782453#M1209657</link>
      <description>&lt;P&gt;Good evening,&lt;/P&gt;&lt;P&gt;So if I understand correctly, you need to populate all the lower nodes to the one that is populated in the SAUsers table, correct?&lt;/P&gt;&lt;P&gt;One solution would be to use a series of IF and OR statements to evaluate the nodes above for an entry for each field, something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAUsers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD ACCESS,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USERID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0&amp;nbsp;OR LEN(NODE6)&amp;gt;0&amp;nbsp; OR LEN(NODE5)&amp;gt;0 OR LEN(NODE4)&amp;gt;0 OR LEN(NODE3)&amp;gt;0 OR LEN(NODE2)&amp;gt;0 ,'N1',&amp;nbsp; NODE1) AS NODE1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0&amp;nbsp;OR LEN(NODE6)&amp;gt;0&amp;nbsp; OR LEN(NODE5)&amp;gt;0 OR LEN(NODE4)&amp;gt;0 OR LEN(NODE3)&amp;gt;0,'N2', NODE2) AS NODE2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0&amp;nbsp;OR LEN(NODE6)&amp;gt;0&amp;nbsp; OR LEN(NODE5)&amp;gt;0 OR LEN(NODE4)&amp;gt;0 ,'N3', NODE3) AS NODE3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0&amp;nbsp;OR LEN(NODE6)&amp;gt;0&amp;nbsp; OR LEN(NODE5)&amp;gt;0 ,'N4', NODE4) AS NODE4,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0&amp;nbsp;OR LEN(NODE6)&amp;gt;0 ,'N5',NODE5) AS NODE5,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0&amp;nbsp;OR LEN(NODE7)&amp;gt;0 ,'N6', NODE6) AS NODE6,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0 OR LEN(NODE8)&amp;gt;0 ,'N7', NODE7) AS NODE7,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(LEN(NODE9)&amp;gt;0,'N8', NODE8) AS NODE8,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NODE9,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SAPROFITCENTER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For each field, evaluate in order, with a set of OR arguments, if any of the above fields are populated with a value ( LEN( field ) &amp;gt;0 ). If any of them are, return the relevant N1-9 value. If none of them are, return the value of the field itself. It is not the most elegant solution, but it will do the trick in a pinch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps you for now, it's no fun to be under the gun. Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the node number are not N1-9 but other numbers that are not static, use an applymap after populating the lower nodes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;P&gt;PS. If this does not accomplish what you need, could you give an example of the you real data, with alterations in them to anonymize it?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 00:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782453#M1209657</guid>
      <dc:creator>Martijn_W</dc:creator>
      <dc:date>2021-02-13T00:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782530#M1209668</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    USERID, Node1, Node2, Node3, Node4, Node5, Node6, Node7, Node8, Node9, SAPPROFITCENTER
    Joe, , , , , N5, , , , , 
    Bob, , , , , , , , , , 134331
    Sam, , , ,N4, , , , , , 134331
];

Left Join(tab1)
LOAD USERID, Pick(Match(-1,Len(Node1)&amp;gt;0,Len(Node2)&amp;gt;0,Len(Node3)&amp;gt;0,Len(Node4)&amp;gt;0,Len(Node5)&amp;gt;0,
Len(Node6)&amp;gt;0,Len(Node7)&amp;gt;0,Len(Node8)&amp;gt;0,Len(Node9)&amp;gt;0),1,2,3,4,5,6,7,8,9) As HighNode
Resident tab1;

Left Join(tab1)
LOAD USERID, IterNo() As Key
Resident tab1
While IterNo()&amp;lt;=HighNode;

M1:
LOAD * INLINE [
    Node1, Node2, Node3, Node4, Node5, Node6, Node7, Node8, Node9
    N1, N2, N3, N4, N5, N6, N7, N8, N9
];

M1X:
CrossTable(Node,mValue)
LOAD 1, * Resident M1;

map1:
Mapping
LOAD * INLINE [
    Node, Key
    Node1, 1
    Node2, 2
    Node3, 3
    Node4, 4
    Node5, 5
    Node6, 6
    Node7, 7
    Node8, 8
    Node9, 9
];

tab2:
LOAD Distinct USERID
Resident tab1;

Left Join(tab2)
LOAD ApplyMap('map1',Node) As Key, Node, mValue Resident M1X;

Left Join(tab1)
LOAD * Resident tab2;

tab3:
Generic
LOAD USERID, SAPPROFITCENTER, Node, mValue
Resident tab1;

Drop Table M1,  M1X,  tab1, tab2;&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 14 Feb 2021 03:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782530#M1209668</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-14T03:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782532#M1209669</link>
      <description>&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV95.PNG" style="width: 347px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49013i6084B3A6EDDA303C/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV95.PNG" alt="commQV95.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 03:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782532#M1209669</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-14T03:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782738#M1209696</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I think we are very close.&amp;nbsp; I have attached 2 spreadsheets one from your output and one which is called ActualUsers which is my input file.&amp;nbsp; I have attached the same user from both files.&amp;nbsp; When you look at my file Node6X is populated with a value.&amp;nbsp; I need to populate Node1X - Node5X with the values.&amp;nbsp; The one with Node5X needs Node1X - Node4X populated.&amp;nbsp; We don't need to do anything for the ones with SapPC only, but they need to stay in the file.&amp;nbsp; I think your solution is so close.&amp;nbsp; I really appreciate all your help.&amp;nbsp; Being under the gun to get this to work is tough.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782738#M1209696</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2021-02-15T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782817#M1209701</link>
      <description>&lt;P&gt;Did u try like this? I have not tested this though.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    UseridX, Node1X, Node2X, Node3X, Node4X, Node5X, Node6X, Node7X, Node8X, Node9X, SapPCX
    Joe, , , , , N5, , , , , 
    Bob, , , , , , , , , , 134331
    Sam, , , ,N4, , , , , , 134331
];

Left Join(tab1)
LOAD UseridX, Pick(Match(-1,Len(Node1X)&amp;gt;0,Len(Node2X)&amp;gt;0,Len(Node3X)&amp;gt;0,Len(Node4X)&amp;gt;0,Len(Node5X)&amp;gt;0,
Len(Node6X)&amp;gt;0,Len(Node7X)&amp;gt;0,Len(Node8X)&amp;gt;0,Len(Node9X)&amp;gt;0),1,2,3,4,5,6,7,8,9) As HighNode
Resident tab1;

Left Join(tab1)
LOAD UseridX, IterNo() As Key
Resident tab1
While IterNo()&amp;lt;HighNode;

M1:
LOAD * INLINE [
    Node1X, Node2X, Node3X, Node4X, Node5X, Node6X, Node7X, Node8X, Node9X
    N1, N2, N3, N4, N5, N6, N7, N8, N9
];

M1X:
CrossTable(Node,mValue)
LOAD 1, * Resident M1;

map1:
Mapping
LOAD * INLINE [
    Node, Key
    Node1X, 1
    Node2X, 2
    Node3X, 3
    Node4X, 4
    Node5X, 5
    Node6X, 6
    Node7X, 7
    Node8X, 8
    Node9X, 9
];

tab2:
LOAD Distinct UseridX
Resident tab1;

Left Join(tab2)
LOAD ApplyMap('map1',Node) As Key, Node, mValue Resident M1X;

Left Join(tab1)
LOAD * Resident tab2;

tab3:
Generic
LOAD UseridX, SapPCX, Node, mValue
Resident tab1;

Drop Table M1,  M1X,  tab1, tab2;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 17:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1782817#M1209701</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-15T17:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1783472#M1209763</link>
      <description>&lt;P&gt;Thank you for all of your help.&amp;nbsp; I ended up going a different direction.&amp;nbsp; Here's what I did.&lt;/P&gt;&lt;P&gt;Expandednodes:&lt;BR /&gt;LOAD Upper(Node1) as NODE1,&lt;BR /&gt;Upper(Node2) as NODE2,&lt;BR /&gt;Upper(Node3) as NODE3,&lt;BR /&gt;Upper(Node4) as NODE4,&lt;BR /&gt;Upper(Node5) as NODE5,&lt;BR /&gt;Upper(Node6) as NODE6,&lt;BR /&gt;Upper(Node7) as NODE7,&lt;BR /&gt;Upper(Node8) as NODE8,&lt;BR /&gt;Upper(Node9) as NODE9&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\ExpandedNodes.QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;Node2_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;NODE1,&lt;BR /&gt;NODE2&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE2)) and IsNull(NODE3)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node2_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE2&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE2)) //and IsNull(NODE3)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node3_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE3)) and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node3_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE3&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE3)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node4_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE4)) and IsNull(NODE5)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node4_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE4&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE4)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node5_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE5)) and IsNull(NODE6)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node5_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE5&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE5)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node6_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE6)) and IsNull(NODE7)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node6_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE6&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE6)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node7_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6,&lt;BR /&gt;NODE7&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE7)) and IsNull(NODE8)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node7_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE7&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE7)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node8_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6,&lt;BR /&gt;NODE7,&lt;BR /&gt;NODE8&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE8)) and IsNull(NODE9)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node8_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE8&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE8)) //and IsNull(NODE4)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Node9_Out:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6,&lt;BR /&gt;NODE7,&lt;BR /&gt;NODE8,&lt;BR /&gt;NODE9&lt;BR /&gt;Resident Expandednodes&lt;BR /&gt;Where (not IsNull(NODE9))&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Inner Join (Node9_Out)&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE9&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where (not IsNull(NODE9))&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;PC:&lt;BR /&gt;LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;SAPROFITCENTER,&lt;BR /&gt;NODE1,&lt;BR /&gt;NODE2,&lt;BR /&gt;NODE3,&lt;BR /&gt;NODE4,&lt;BR /&gt;NODE5,&lt;BR /&gt;NODE6,&lt;BR /&gt;NODE7,&lt;BR /&gt;NODE8,&lt;BR /&gt;NODE9&lt;BR /&gt;FROM&lt;BR /&gt;[D:\Qlikview\QVD\Section Access\SAUsers.QVD]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where Len(SAPROFITCENTER) &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Users:&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node2_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node3_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node4_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node5_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node6_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node7_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node8_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident Node9_Out&lt;BR /&gt;;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load *&lt;BR /&gt;Resident PC&lt;BR /&gt;;&lt;BR /&gt;Drop table Node2_Out, Node3_Out, Node4_Out, Node5_Out, Node6_Out, Node7_Out, Node8_Out, Node9_Out, PC&lt;BR /&gt;;&lt;BR /&gt;Drop table Expandednodes&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Exit SCRIPT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Logic/m-p/1783472#M1209763</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2021-02-17T14:31:30Z</dc:date>
    </item>
  </channel>
</rss>

