<?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: Formula working in Text Box but not in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587227#M739785</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Please try this but only use&amp;nbsp; one Quote(') instead of using two quotes (") like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT{&amp;lt;Date_Application_Received={'&amp;gt;=$(=monthstart(addmonths(max(date_accepted_by_customer),-1)))&amp;lt;=$(=monthend(addmonths(max(date_accepted_by_customer),6)))'}&amp;gt;}Policy_No)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 16:40:41 GMT</pubDate>
    <dc:creator>bharathadde</dc:creator>
    <dc:date>2019-05-31T16:40:41Z</dc:date>
    <item>
      <title>Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586476#M739781</link>
      <description>&lt;P&gt;Hi All, yet again need your expertise on below issue:&lt;/P&gt;&lt;P&gt;I'm calculating a value in textbox with below formula:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;=count(DISTINCT{&amp;lt;Date_Application_Received={"&amp;gt;=$(=monthstart(addmonths(max(date_accepted_by_customer),-1)))&amp;lt;=$(=monthend(addmonths(max(date_accepted_by_customer),6)))"}&amp;gt;}Policy_No)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;count(distinct{&amp;lt;Date_Application_Received={"&amp;gt;=$(vFirstDate)&amp;lt;=$(vLastDate)"}&amp;gt;}Policy_No),&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;vFirstDate&amp;nbsp;=monthstart(addmonths(max(date_accepted_by_customer),-1))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;vLastDate=monthend(addmonths(max(date_accepted_by_customer),6))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;which is working perfectly fine in textbox.&lt;/P&gt;&lt;P&gt;As soon as I'm replicating this formula in Pivot table, values are not coming as expected. But when I'm selecting MonthYear filter, pivot table is showing value for selected filter. Attached the screenshots.&lt;/P&gt;&lt;P&gt;So my deduction is formula is working fine, but I'm missing some more calculations in order to work in pivot table, not sure about this part.&lt;/P&gt;&lt;P&gt;Can you please help me to figure this out.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586476#M739781</guid>
      <dc:creator>amruta_j</dc:creator>
      <dc:date>2024-11-16T20:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586863#M739782</link>
      <description>&lt;P&gt;&lt;SPAN&gt;try this &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct{&amp;lt;Date_Application_Received={"&amp;gt;=$(=vFirstDate)&amp;lt;=$(=vLastDate)"}&amp;gt;}Policy_No),&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 20:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586863#M739782</guid>
      <dc:creator>bharathadde</dc:creator>
      <dc:date>2019-05-30T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586972#M739783</link>
      <description>&lt;P&gt;Tried it, not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 01:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1586972#M739783</guid>
      <dc:creator>amruta_j</dc:creator>
      <dc:date>2019-05-31T01:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587006#M739784</link>
      <description>&lt;P&gt;Hi! Set Analysis expression are calculated &lt;STRONG&gt;one time per chart.&amp;nbsp;&lt;/STRONG&gt;That means that values of MonthYear dimension are not taken into account in&amp;nbsp;&lt;SPAN&gt;vFirstDate&amp;nbsp; and&amp;nbsp;vLastDate. When no selections made,&amp;nbsp;vLastDate and&amp;nbsp;vFirstDate are calculated for all possible values of MonthYear. When you select Jan-2018, the variables are calculated for all possible values given that selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I suggest you to use an if statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count(distinct if("Conditions on Dates", Policy_No))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 06:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587006#M739784</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-05-31T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587227#M739785</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please try this but only use&amp;nbsp; one Quote(') instead of using two quotes (") like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count(DISTINCT{&amp;lt;Date_Application_Received={'&amp;gt;=$(=monthstart(addmonths(max(date_accepted_by_customer),-1)))&amp;lt;=$(=monthend(addmonths(max(date_accepted_by_customer),6)))'}&amp;gt;}Policy_No)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 16:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587227#M739785</guid>
      <dc:creator>bharathadde</dc:creator>
      <dc:date>2019-05-31T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587871#M739787</link>
      <description>&lt;P&gt;Try like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct{&amp;lt;Date_Application_Received={"&amp;gt;='$(vFirstDate)'&amp;lt;='$(vLastDate)'"}&amp;gt;}Policy_No)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct{&amp;lt;Date_Application_Received={"&amp;gt;=$(=vFirstDate)&amp;lt;=$(=vLastDate)"}&amp;gt;}Policy_No)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 06:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1587871#M739787</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-06-04T06:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Formula working in Text Box but not in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1588927#M739788</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the suggestions. But what worked in this case is given below:&lt;/P&gt;&lt;P&gt;I've created same variables in the backend script with group by clause.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Load date_accepted_by_customer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;monthstart(addmonths(max(date_accepted_by_customer),-1)) as FirstDate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;monthend(addmonths(max(date_accepted_by_customer),6)) as LastDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Resident MPD_TXN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;group by date_accepted_by_customer;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then in the frontend used below formula:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;count(distinct if(Date_Application_Received &amp;gt;= FirstDate and Date_Application_Received &amp;lt;= LastDate,Policy_No))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This worked well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 10:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-working-in-Text-Box-but-not-in-Pivot-Table/m-p/1588927#M739788</guid>
      <dc:creator>amruta_j</dc:creator>
      <dc:date>2019-06-06T10:29:56Z</dc:date>
    </item>
  </channel>
</rss>

