<?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 Nested If &amp; Pick in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41315#M6967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a pivot table where the column and row will be expression. I use the Pick method to create the table. But I have a problem when I have 2 dimensions. When I collapse the first dimension, the row will disappear (due to row value = null). How can I add an expression for the first dimension? It is do-able if I use the Nested If, but the expression will be very messy. I hope there is a way with the Pick Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the attached QVW for the example between IF vs Pick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This is a simplified version of the actual pivot.&lt;/P&gt;&lt;P&gt;*Unchecking the "suppress zero" value is not an option. (I need to suppress null value in DimB)&lt;/P&gt;&lt;P&gt;*This table have multiple expression columns. (not included in this example)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 07:11:13 GMT</pubDate>
    <dc:creator>KHSDM</dc:creator>
    <dc:date>2018-06-01T07:11:13Z</dc:date>
    <item>
      <title>Nested If &amp; Pick</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41315#M6967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a pivot table where the column and row will be expression. I use the Pick method to create the table. But I have a problem when I have 2 dimensions. When I collapse the first dimension, the row will disappear (due to row value = null). How can I add an expression for the first dimension? It is do-able if I use the Nested If, but the expression will be very messy. I hope there is a way with the Pick Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the attached QVW for the example between IF vs Pick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This is a simplified version of the actual pivot.&lt;/P&gt;&lt;P&gt;*Unchecking the "suppress zero" value is not an option. (I need to suppress null value in DimB)&lt;/P&gt;&lt;P&gt;*This table have multiple expression columns. (not included in this example)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 07:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41315#M6967</guid>
      <dc:creator>KHSDM</dc:creator>
      <dc:date>2018-06-01T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If &amp; Pick</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41316#M6968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I'm not mistaken, then eclosing the pick functions with an aggregation like Sum() should do the trick.&lt;/P&gt;&lt;P&gt;For your example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Pick(DimA,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Pick(DimB, 1, 2, 3),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Pick(DimB, 4, 5, 6),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Pick(DimB, 7, 8, 9)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 08:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41316#M6968</guid>
      <dc:creator>andre_mueller</dc:creator>
      <dc:date>2018-06-01T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If &amp; Pick</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41317#M6969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use this with pick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(Pick(DimA,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(DimB, 1, 2, 3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(DimB, 4, 5, 6),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(DimB, 7, 8, 9)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;), DimA, DimB))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204114_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 11:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-Pick/m-p/41317#M6969</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-01T11:30:20Z</dc:date>
    </item>
  </channel>
</rss>

