<?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 Expression change with Column change in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-change-with-Column-change-in-Pivot-Table/m-p/243495#M1195476</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;Good Morning;&lt;/P&gt;&lt;P&gt;I have a new question to ask. Recently I was working with a pivot table. I have attached the picture of the pivot table how it looks.&lt;/P&gt;&lt;P&gt;Now to calculate the % of Opportunity(last column) I have used the following expression. And its giving me the correct result. What it does is&lt;/P&gt;&lt;P&gt;it calculates the percentage of value of individual row in that bucket for "Num of Opportunity" column. For example in 4th row of the table the &lt;/P&gt;&lt;P&gt;value in Num of Opportunity is= 15, hence the % of Opportunity is =&amp;gt; 15/139= 10.8% . Similarly for the next row its =&amp;gt;13/139= 9.4% and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;} OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;}total&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt; &amp;lt;STAGE,&lt;SPAN style="color: #000080;"&gt;Bucket_Test&lt;/SPAN&gt;&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here is the problem statement.&lt;/P&gt;&lt;P&gt;When the user interchangeably moves the Design Sales Area column to Stage column position, the formula should actually change to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;} OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;}total&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt; &amp;lt;&lt;SPAN style="color: #000080;"&gt;Bucket_Test&lt;/SPAN&gt;,STAGE&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in order to give the correct result.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I make the expression dynamic with the position of the column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 17:29:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-29T17:29:28Z</dc:date>
    <item>
      <title>Expression change with Column change in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-change-with-Column-change-in-Pivot-Table/m-p/243495#M1195476</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;Good Morning;&lt;/P&gt;&lt;P&gt;I have a new question to ask. Recently I was working with a pivot table. I have attached the picture of the pivot table how it looks.&lt;/P&gt;&lt;P&gt;Now to calculate the % of Opportunity(last column) I have used the following expression. And its giving me the correct result. What it does is&lt;/P&gt;&lt;P&gt;it calculates the percentage of value of individual row in that bucket for "Num of Opportunity" column. For example in 4th row of the table the &lt;/P&gt;&lt;P&gt;value in Num of Opportunity is= 15, hence the % of Opportunity is =&amp;gt; 15/139= 10.8% . Similarly for the next row its =&amp;gt;13/139= 9.4% and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;} OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;}total&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt; &amp;lt;STAGE,&lt;SPAN style="color: #000080;"&gt;Bucket_Test&lt;/SPAN&gt;&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here is the problem statement.&lt;/P&gt;&lt;P&gt;When the user interchangeably moves the Design Sales Area column to Stage column position, the formula should actually change to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;} OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(distinct {1&amp;lt;FACT_TYPE={'Current'},FLAG_HEALTH_REPORT={'1'}, REVENUE_RECOGNITION_FLAG ={'Yes'}, IS_PART_ACTIVE={'1'}, MODIFIED_DATE={"&amp;lt;=$(vMaxDate)"}&amp;gt;}total&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt; &amp;lt;&lt;SPAN style="color: #000080;"&gt;Bucket_Test&lt;/SPAN&gt;,STAGE&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;OPP_ITEM)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in order to give the correct result.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I make the expression dynamic with the position of the column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 17:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-change-with-Column-change-in-Pivot-Table/m-p/243495#M1195476</guid>
      <dc:creator />
      <dc:date>2011-06-29T17:29:28Z</dc:date>
    </item>
  </channel>
</rss>

