<?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: previous 6 month expression not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730959#M55760</link>
    <description>&lt;P&gt;I just need to count the last 6 month from today and the last 24 month from today, without selecting the year&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 08:12:28 GMT</pubDate>
    <dc:creator>anwarbham</dc:creator>
    <dc:date>2020-07-27T08:12:28Z</dc:date>
    <item>
      <title>previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730646#M55715</link>
      <description>&lt;P&gt;Hi guys im confused why a simple expression to get the last 6 month data wont bring me any results&lt;/P&gt;&lt;P&gt;i have a master calender the one below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38031i3DC563FAAA13CA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Qlik sense represents the date Field as '&lt;FONT&gt;18/02/2020'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;I have a simple expression to get the last 6 month data but it wont yield any results.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Count({$&amp;lt;_DataSource_F_Call$(vLiz_Set_SnapshotSwitch)={1},_ChannelCriteria={1},_IndividualCustomer={1},Timeframe={MTH},$(vLiz_Set_Territory),Product=, Date = {'&amp;gt;=$(=addmonths(today(),-6))'}&amp;gt;} DISTINCT Contact_Cnt)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;but I do get the last 6 month data if i use this&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Count({$&amp;lt;_DataSource_F_Call$(vLiz_Set_SnapshotSwitch)={1},_ChannelCriteria={1},_IndividualCustomer={1},Timeframe={MTH},$(vLiz_Set_Territory),Product=, 
Month= {
"$(=Month(addmonths(Today(),-6)))",
"$(=Month(addmonths(Today(),-5)))",
"$(=Month(addmonths(Today(),-4)))",
"$(=Month(addmonths(Today(),-3)))",
"$(=Month(addmonths(Today(),-2)))",
"$(=Month(addmonths(Today(),-1)))",
"$(=Month(Today()))"
},
Year = {"$(=Year(Today()))"}&amp;gt;} DISTINCT Contact_Cnt)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone tell me why or help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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 01:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730646#M55715</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2024-11-16T01:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730651#M55717</link>
      <description>&lt;P&gt;try with double quotes&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Count({$&amp;lt;_DataSource_F_Call$(vLiz_Set_SnapshotSwitch)={1},_ChannelCriteria={1},_IndividualCustomer={1},Timeframe={MTH},$(vLiz_Set_Territory),Product=, Date = {"&amp;gt;=$(=addmonths(today(),-6))"}&amp;gt;} DISTINCT Contact_Cnt)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Jul 2020 13:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730651#M55717</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-24T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730657#M55720</link>
      <description>&lt;P&gt;it works if I remove the equal sign&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Date = {"&amp;gt;=$(addmonths(today(),-6))"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;instead of&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Date = {"&amp;gt;=$(=addmonths(today(),-6))"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;only problem is if I don't have the current year in selection it includes data from previous year&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730657#M55720</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2020-07-24T14:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730662#M55722</link>
      <description>&lt;P&gt;What do you want to achieve?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730662#M55722</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-24T14:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730959#M55760</link>
      <description>&lt;P&gt;I just need to count the last 6 month from today and the last 24 month from today, without selecting the year&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 08:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1730959#M55760</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2020-07-27T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: previous 6 month expression not working</title>
      <link>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1731079#M55773</link>
      <description>&lt;P&gt;&lt;FONT&gt;Fixed with the below codeas en example for 12 month&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Count({$&amp;lt;_DataSource_F_Call$(vLiz_Set_SnapshotSwitch)={1},_ChannelCriteria={1},_IndividualCustomer={1},Timeframe={MTH},$(vLiz_Set_Territory),&amp;nbsp;&lt;BR /&gt;Date = {"&amp;gt;=$(=date(addmonths(today(),-12),'DD/MM/YYYY'))"}&amp;nbsp; &amp;gt;}&amp;nbsp; DISTINCT Contact_Cnt)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/previous-6-month-expression-not-working/m-p/1731079#M55773</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2020-07-27T14:28:38Z</dc:date>
    </item>
  </channel>
</rss>

