<?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: straight table expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083553#M943706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=RangeCount(Avg(ID), Avg(ID1), Avg(ID2), Avg(ID3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111538_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 17:28:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-13T17:28:31Z</dc:date>
    <item>
      <title>straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083552#M943705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have a table which contains the information like below.&lt;/P&gt;&lt;P&gt;date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp; ID1&amp;nbsp;&amp;nbsp; ID2&amp;nbsp;&amp;nbsp; ID3&lt;/P&gt;&lt;P&gt;1/1/2015 34&lt;/P&gt;&lt;P&gt;1/2/2015 55&amp;nbsp;&amp;nbsp; 21&lt;/P&gt;&lt;P&gt;3/2/2015 21&amp;nbsp;&amp;nbsp; 67&amp;nbsp;&amp;nbsp;&amp;nbsp; 54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show this information in straight table with date as dimension. &lt;/P&gt;&lt;P&gt;If the ID only exists for a date, then it should give the count as 1 else it should look for the all the 4 columns and give me the count.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID count&lt;/P&gt;&lt;P&gt;1/1/2015&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1/2/2015&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1/3/2013&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083552#M943705</guid>
      <dc:creator>vireshkolagimat</dc:creator>
      <dc:date>2016-01-13T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083553#M943706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=RangeCount(Avg(ID), Avg(ID1), Avg(ID2), Avg(ID3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111538_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083553#M943706</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-13T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083554#M943707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the reply.&lt;/P&gt;&lt;P&gt;How to achieve the below requirement.&lt;/P&gt;&lt;P&gt;If there is value in only ID column and no value in ID1, ID2, ID3 then i should get as primary.&lt;/P&gt;&lt;P&gt;If there is any value in any one of the three columns i.e ID1, ID2, ID3 along with ID column then i want to show as secondary.&lt;/P&gt;&lt;P&gt;please let me know how to achieve this in script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083554#M943707</guid>
      <dc:creator>vireshkolagimat</dc:creator>
      <dc:date>2016-01-20T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083555#M943708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand what you are trying to do. Can you give an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 16:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083555#M943708</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-20T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083556#M943710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="ID.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112187_ID.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If you look at the first row, for cust ID 123, i have only one acc ID so i want to show as Primary customer.&lt;/P&gt;&lt;P&gt;In other cases, if the Cust ID have more than on Acc ID apart from Acc ID, then i want to show as secondary customer.&lt;/P&gt;&lt;P&gt;I have shown expected result in the last column (Colored one).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 08:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083556#M943710</guid>
      <dc:creator>vireshkolagimat</dc:creator>
      <dc:date>2016-01-21T08:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083557#M943711</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Len(Trim(ID1)) = 0 AND &lt;SPAN style="font-size: 13.3333px;"&gt;Len(Trim(ID2)) = 0 AND &lt;SPAN style="font-size: 13.3333px;"&gt;Len(Trim(ID3)) = 0, 'Primary', 'Secondary') AS Type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 09:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083557#M943711</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-01-21T09:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083558#M943713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(RangeCount([Acc ID1], [Acc ID2], [Acc ID3]) &amp;gt; 0, 'Secondary', 'Primary') as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 11:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083558#M943713</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083559#M943714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. Its working as expected.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 13:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083559#M943714</guid>
      <dc:creator>vireshkolagimat</dc:creator>
      <dc:date>2016-01-21T13:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: straight table expression</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083560#M943716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-expression/m-p/1083560#M943716</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T18:05:06Z</dc:date>
    </item>
  </channel>
</rss>

