<?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: if statement on multiple columns return all values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162165#M378777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two alternatives:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in your load script, you could use a CROSSTABLE load to serialize the data and tag it with the column header ('C1', C2', 'C3', etc.) Afterwards, you'll have a real dimension that makes your chart evolve with selections using a single sum(Value)&lt;/LI&gt;&lt;LI&gt;or create as many expressions in your chart as there are C&lt;EM&gt;n&lt;/EM&gt;-columns. This is usually a fixed number.that doesn't need updating. Similar to what Sunny suggested.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 20:06:16 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-05-31T20:06:16Z</dc:date>
    <item>
      <title>if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162160#M378772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably really simple, but I'm having a brain freeze on how to accomplish it. I need a logic statement that returns all of the values of 1. If I use an IF statement, the first if knocks out the subsequent values&lt;/P&gt;&lt;P&gt;This statement&lt;/P&gt;&lt;P&gt;if(C1=1,1,0,if(C2=1,1,0,if(C3=1,1,0,if(C4=1,1,0)&lt;/P&gt;&lt;P&gt;returns&lt;/P&gt;&lt;P&gt;count of C1 = 2&lt;/P&gt;&lt;P&gt;count of C2 = 1&lt;/P&gt;&lt;P&gt;count of C3 = 0&lt;/P&gt;&lt;P&gt;count of C4 = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I use to get the counts to accurately reflect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count of C1 = 2&lt;/P&gt;&lt;P&gt;count of C2 = 3&lt;/P&gt;&lt;P&gt;count of C3 = 2&lt;/P&gt;&lt;P&gt;count of C4 =1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 14:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162160#M378772</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-05-27T14:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162161#M378773</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;Can you post sample app to understand where you are using the IF statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 16:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162161#M378773</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2016-05-27T16:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162162#M378774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how your data looks, but why can't you just do &lt;STRONG&gt;Sum(C1), Sum(C2), Sum(C3), Sum(C4)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 16:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162162#M378774</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-27T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162163#M378775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, should have been more clear what I was trying to achieve. I am creating a Dimension for a chart that looked something like the IF statement above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 17:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162163#M378775</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-05-27T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162164#M378776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126405_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 19:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162164#M378776</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-05-31T19:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162165#M378777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two alternatives:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in your load script, you could use a CROSSTABLE load to serialize the data and tag it with the column header ('C1', C2', 'C3', etc.) Afterwards, you'll have a real dimension that makes your chart evolve with selections using a single sum(Value)&lt;/LI&gt;&lt;LI&gt;or create as many expressions in your chart as there are C&lt;EM&gt;n&lt;/EM&gt;-columns. This is usually a fixed number.that doesn't need updating. Similar to what Sunny suggested.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 20:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162165#M378777</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-31T20:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162166#M378778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence(&lt;A href="https://community.qlik.com/qlik-users/136435"&gt;lbunnell&lt;/A&gt;‌),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this by using the &lt;SPAN style="color: #3366ff;"&gt;CROSSTABLE&lt;/SPAN&gt; load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Crosstable.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126420_Crosstable.png" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get to the above chart I have put your example table into an Excel file and loaded it using the CROSSTABLE load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14647318447317240 jive_text_macro" jivemacro_uid="_14647318447317240" modifiedtitle="true"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;CROSSTABLE(Label,Value)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() AS Row,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C1, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C2, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C3, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[SOURCE.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is EVENTDATE);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the CROSSTABLE load, you are pivoting your column labels to be used as a value, essentially converting your table to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CrossedTable.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126421_CrossedTable.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after you have the above table, you can create a chart with the Dimension "Label" and the Expression: "SUM(Value)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's it.&amp;nbsp; I hope this was what you were looking for and it was helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the example application and the Excel file used in this test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 22:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162166#M378778</guid>
      <dc:creator>novolouy</dc:creator>
      <dc:date>2016-05-31T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162167#M378779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162167#M378779</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-06-01T12:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162168#M378780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I appreciate the detail!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162168#M378780</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-06-01T12:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162169#M378781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question... if I want to use the CrossTable with a larger data source that includes and is related to the User, userID, etc. would you be able to join the data table with the CrossTable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162169#M378781</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-06-01T13:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: if statement on multiple columns return all values</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162170#M378782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is exactly the same thing.&lt;/P&gt;&lt;P&gt;The CROSSTABLE Load keeps the first column as is, and pivots the following columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I have the following table:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 443px; height: 53px;" width="441"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;User ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;LukeS&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;JohnQ&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;HanS&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I apply the same CROSSTABLE Load I will have the following table in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UserID.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126542_UserID.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can create the same chart and have the same results as shown before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add any additional qualifier columns, you will have to add a parameter in the CROSSTABLE Load.&lt;/P&gt;&lt;P&gt;For example, if in addition to "User ID" I also want to have "Region" I use the following load example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14647983822536955" jivemacro_uid="_14647983822536955" modifiedtitle="true"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;CROSSTABLE(Label,Value, 2)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [User ID],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C1, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C2, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C3, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is EVENTDATE);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That additional parameter (the number 2) at the end of CROSSTABLE defines how many columns are not to be pivoted.&amp;nbsp; By default is 1, the first one.&amp;nbsp; By defining it as 2, I am telling it not to pivot "User ID" nor "Region".&lt;/P&gt;&lt;P&gt;You can escalate that as you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example with User ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-on-multiple-columns-return-all-values/m-p/1162170#M378782</guid>
      <dc:creator>novolouy</dc:creator>
      <dc:date>2016-06-01T16:29:45Z</dc:date>
    </item>
  </channel>
</rss>

