<?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: Nested ValueLists with Conditional Logic in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811234#M66124</link>
    <description>&lt;P&gt;what is the measure you are using? because we use Value list to populate dimensions as these are stand alone dimensions and do not have relation with data / measure, you need to write measure with similar pick and match statement to match the dimensions.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 06:12:21 GMT</pubDate>
    <dc:creator>Sammy_AK</dc:creator>
    <dc:date>2021-05-28T06:12:21Z</dc:date>
    <item>
      <title>Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810783#M66055</link>
      <description>&lt;P&gt;Hello, I am wanting to know if there is anyway to have nested ValueLists as a dimension using conditional logic.&amp;nbsp; In the image below I am wanting to only have ‘Commissions’ and ‘Cash’ under ‘Net Commissions’ and ‘Phranchise Fees’ and ‘Technology Fees’ under ‘Net Fees’.&amp;nbsp; I currently have these three ValueLists as row dimensions in the following order:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Cash Payout')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Commissions', 'Net Fees')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees')&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried the following expression for my third dimension but it returns null values:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=IF(ValueList('Net Commissions', 'Net Fees') = 'Net Commissions', &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;ValueList('Commissions', 'Cash'), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Net Commissions', 'Net Fees') = 'Net Fees',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;ValueList('Phranchise Fee', 'Technology Fees')))&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55754i81D8E446FED1098E/image-size/large?v=v2&amp;amp;px=999" role="button" title="cap.PNG" alt="cap.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810783#M66055</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-26T14:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810850#M66071</link>
      <description>&lt;P&gt;Use Pick and match function, instead of nested IFs.&lt;/P&gt;&lt;P&gt;Pick(Match(&lt;SPAN&gt;ValueList('Net Commissions', 'Net Fees'),'Net Commissions')+1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;,ValueList('Phranchise Fee', 'Technology Fees')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;,ValueList('Commissions', 'Cash')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810850#M66071</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-05-26T19:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810851#M66072</link>
      <description>&lt;P&gt;Not what you are asking, but our account tree is 19 nodes deep.&amp;nbsp; I used the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Hierarchy.htm" target="_self"&gt;Hierarchy&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/HierarchyBelongsTo.htm" target="_self"&gt;HiearchyBelongsTo&lt;/A&gt;&amp;nbsp;functions to create the visualization that you want.&amp;nbsp; The dimension was the Node1, Node2, etc...&lt;/P&gt;&lt;P&gt;The expression was Sum({&amp;lt;Ancestor={'Net Commissions','Net Fees'}&amp;gt;}Amount) to get only the accounts that I needed to display.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1810851#M66072</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2021-05-26T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811083#M66109</link>
      <description>&lt;P&gt;I'm still getting null values with this.&amp;nbsp; Thank you for the suggestion though&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811083#M66109</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-27T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811234#M66124</link>
      <description>&lt;P&gt;what is the measure you are using? because we use Value list to populate dimensions as these are stand alone dimensions and do not have relation with data / measure, you need to write measure with similar pick and match statement to match the dimensions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 06:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811234#M66124</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-05-28T06:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811536#M66160</link>
      <description>&lt;P&gt;It is the dimension that is becoming null I believe.&amp;nbsp; Here is a screenshot of what happens when I try your solution (the same thing happens with what I've tried above).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55946i8C45A611ED0596D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the table screenshot in my initial question I am using this as a Dimension (3 dimensions):&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Cash Payout')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Commissions', 'Net Fees')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees')&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;And this as a measure:&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Commissions', if(Sum(CalculatedWAC) &amp;gt; 0, SUM(CalculatedWAC)), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Cash', if(Sum(CalculatedCash) &amp;gt; 0, SUM(CalculatedCash)),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Phranchise Fee', phranFee,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Technology Fees', if(sum(TechFeeAmount) &amp;gt; 0, sum(TechFeeAmount))))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have tried this which gives the null results in my provided screenshot. (3 dimensions):&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Cash Payout')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=ValueList('Net Commissions', 'Net Fees')&lt;BR /&gt;=IF(ValueList('Net Commissions', 'Net Fees') = 'Net Commissions',&lt;BR /&gt;ValueList('Commissions', 'Cash'),&lt;BR /&gt;IF(ValueList('Net Commissions', 'Net Fees') = 'Net Fees',&lt;BR /&gt;ValueList('Phranchise Fee', 'Technology Fees')))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;And this as the measure:&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;=IF(ValueList('Commissions', 'Cash') = 'Commissions', if(Sum(CalculatedWAC) &amp;gt; 0, SUM(CalculatedWAC)), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Commissions', 'Cash',) = 'Cash', if(Sum(CalculatedCash) &amp;gt; 0, SUM(CalculatedCash)),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Phranchise Fee', 'Technology Fees') = 'Phranchise Fee', phranFee,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;IF(ValueList('Phranchise Fee', 'Technology Fees') = 'Technology Fees', if(sum(TechFeeAmount) &amp;gt; 0, sum(TechFeeAmount))))))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 21:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811536#M66160</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-28T21:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nested ValueLists with Conditional Logic</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811703#M66194</link>
      <description>&lt;P&gt;i see that when you input the child values, you want to roll up to parent values ? is this the expectation or values do not display?&lt;/P&gt;&lt;P&gt;from the above i understand you have 3 dimensions&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Dimension 1&lt;/FONT&gt; =ValueList('Net Cash Payout')&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Dimension 2 &lt;FONT color="#3366FF"&gt;=ValueList('Net Commissions', 'Net Fees')&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Dimension 3&amp;nbsp;&lt;FONT color="#3366FF"&gt;=ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees')&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;in the measure i see that you have provided values for Dimension 3 only.&amp;nbsp; to do a test of this expression, i replaced sum() with numbers to see if they are being displayed, so i used the below expression for measure.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;=IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Commissions' , 11&lt;BR /&gt;, IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Cash' , 12&lt;BR /&gt;, IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Phranchise Fee', 13&lt;BR /&gt;,IF(ValueList('Commissions', 'Cash', 'Phranchise Fee', 'Technology Fees') = 'Technology Fees' , 14))))&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;i was able to get an output for all the dimension 3 , from this i understand that you are inputting&amp;nbsp;sum() expression which is trying to aggregate values using the dimension 3 and it does not exist because its a valuelist. so instead of using sum(), use Sum (total (&amp;lt;field name&amp;gt;) this will give you the output.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;if you want a roll-up values to be displayed, you need use dimensionality function in your expression.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-ValueLists-with-Conditional-Logic/m-p/1811703#M66194</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-05-31T08:27:21Z</dc:date>
    </item>
  </channel>
</rss>

