<?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 Pivot Table and straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425817#M158611</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; I am trying to create pivot table and straight table where as the table should display the data only when dates are in either of (R3,R6 or MTD) and Companycode=1.The same expression was working fine for R3 and MTD. When i added R6 it is not working&lt;/P&gt;&lt;P&gt; But still the pivot table is showing all the values which does not met the above criteria.The exrepssion i used to restrict the data is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Status='Active' and&amp;nbsp; (Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_R6)=1 or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_R3)=1 &lt;/P&gt;&lt;P&gt;or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_MTD)=1 ) and _Type=1,'Yes',&lt;/P&gt;&lt;P&gt;If(Status='Inactive' and&amp;nbsp; ( Only({$&amp;lt;companycode={$(#vCode)}&amp;gt;}_R6)=1 or Only({$&amp;lt;Comapnycode={$(#vCode)}&amp;gt;}_R3)=1 &lt;/P&gt;&lt;P&gt;or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_MTD)=1) and _Type=1,'No')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i was trying to showing the count based on the below condition still it was working for R3 and MTD when i have added the R6 it is not working . I want to show 0 if&amp;nbsp; LEV is 1 for the selected company code and does not have any data for R3,R6 and MTD.&amp;nbsp; Below is the expression used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_R3)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_MTD)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_R6)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),0)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 13:24:10 GMT</pubDate>
    <dc:creator>brindlogcool</dc:creator>
    <dc:date>2012-12-11T13:24:10Z</dc:date>
    <item>
      <title>Pivot Table and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425817#M158611</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; I am trying to create pivot table and straight table where as the table should display the data only when dates are in either of (R3,R6 or MTD) and Companycode=1.The same expression was working fine for R3 and MTD. When i added R6 it is not working&lt;/P&gt;&lt;P&gt; But still the pivot table is showing all the values which does not met the above criteria.The exrepssion i used to restrict the data is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Status='Active' and&amp;nbsp; (Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_R6)=1 or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_R3)=1 &lt;/P&gt;&lt;P&gt;or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_MTD)=1 ) and _Type=1,'Yes',&lt;/P&gt;&lt;P&gt;If(Status='Inactive' and&amp;nbsp; ( Only({$&amp;lt;companycode={$(#vCode)}&amp;gt;}_R6)=1 or Only({$&amp;lt;Comapnycode={$(#vCode)}&amp;gt;}_R3)=1 &lt;/P&gt;&lt;P&gt;or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_MTD)=1) and _Type=1,'No')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i was trying to showing the count based on the below condition still it was working for R3 and MTD when i have added the R6 it is not working . I want to show 0 if&amp;nbsp; LEV is 1 for the selected company code and does not have any data for R3,R6 and MTD.&amp;nbsp; Below is the expression used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_R3)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_MTD)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),&lt;/P&gt;&lt;P&gt;If(GetFieldSelections(_R6)=1,Sum({$&amp;lt;Companycode={$(#vCode)},LEV={1}&amp;gt;}CCNT),0)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 13:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425817#M158611</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-12-11T13:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425818#M158612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t know if you just copied and pasted youre expression or wrote it new in here, so it "might" make no sence what i´m writing here....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Status='Inactive' and&amp;nbsp; ( Only({$&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;companycode&lt;/STRONG&gt;&lt;/SPAN&gt;={$(#vCode)}&amp;gt;}_R6)=1 or&lt;/P&gt;&lt;P&gt; Only({$&amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Comapnycode&lt;/STRONG&gt;&lt;/SPAN&gt;={$(#vCode)}&amp;gt;}_R3)=1 &lt;/P&gt;&lt;P&gt;or Only({$&amp;lt;Companycode={$(#vCode)}&amp;gt;}_MTD)=1) and _Type=1,'No')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is one spelling mistake. (Bold and Underlined)--&amp;gt; Comapnycode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And QlikView is case sensitive in Set Analysis, you have to use (Also Bold and Underlined)--&amp;gt; Companycode not companycode &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 14:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425818#M158612</guid>
      <dc:creator />
      <dc:date>2012-12-11T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425819#M158613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. You are right i have not copy pasted . In the original expression there is no issue with the spelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to check the functionality&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 14:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425819#M158613</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-12-11T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425820#M158614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. You are right i have not copy pasted . In the original expression there is no issue with the spelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to check the functionality&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 14:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-and-straight-table/m-p/425820#M158614</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-12-11T14:16:10Z</dc:date>
    </item>
  </channel>
</rss>

