<?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: Trick in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343548#M846736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year(AddYears(Today(),-2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This part will return -- 2015(Because, From Today's year we want to show last 2 year data that means 2017 - 2 = 2015)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Num(Month(Today())))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This part will return in Number format of Today's month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finally, Makedate will return YYYY, MM, DD Format which means 2015, 04, 01 (Here Makedate consider the first day in default)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Date(MakeDate(Year(AddYears(Today(),-2)),Num(Month(Today()))),'YYYY-MM-DD')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, Finally this will return and change it as 2015-04-01 due to Date function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, I highly recommend you to split and start from your end by help of Text object you will get to know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Helps to you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 09:29:08 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-04-05T09:29:08Z</dc:date>
    <item>
      <title>Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343543#M846731</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;Can someone please explain me what this below expression is doing ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp; IsNull(MIN({Filter} Date)) = 0, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; , &lt;/P&gt;&lt;P&gt;&amp;nbsp; Only({&amp;lt;yearMonthSort = {"$(=Date(AddMonths(Today(), -1), 'YYYYMM'))"}&amp;gt;}Sales_StartDate)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343543#M846731</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343544#M846732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not the good explain person, But i will try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here how this work is - Need to fetch date where null value become as Zero then we need to ignore for state over here and then Fetch minimum date of those null dates and then fetch only Sales_StartDate where the condition works which as YearMonthSort filter is last month of date should get and which format should and applicable as YYYYMM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, It will return as Sales_StartDate where last month and where the Date field has null values for filter &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 08:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343544#M846732</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-05T08:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343545#M846733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil &lt;/P&gt;&lt;P&gt;and what does this means ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From_Date&amp;gt;=Date(MakeDate(Year(AddYears(Today(),-2)),Num(Month(Today()))),'YYYY-MM-DD');&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;what is -2 for ? here &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343545#M846733</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2017-04-05T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343546#M846734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IsNull(MIN({Filter} Date)) = 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;/// if Min(Date) with given {filters} is &lt;SPAN style="text-decoration: underline;"&gt;NOT&lt;/SPAN&gt;&amp;nbsp; null()&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ,&amp;nbsp; &lt;STRONG&gt; // Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Only({&amp;lt;yearMonthSort = {"$(=Date(AddMonths(Today(), -1), 'YYYYMM'))"}&amp;gt;}Sales_StartDate) &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;STRONG&gt;Get Sales_StartDate for Previous month&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But using only() means you are trying to retrieve only a single value? or do you want to use Min() to get first Sales_StartDate for previous month ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343546#M846734</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-04-05T09:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343547#M846735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The -2 is a parameter to the AddYears() function, which subtracts 2 years to the current year as specified by Today(), so the whole expression reads:&lt;/P&gt;&lt;P&gt;"Values in From_Date field greater than or equal to 2015-04-01"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343547#M846735</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-04-05T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343548#M846736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year(AddYears(Today(),-2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This part will return -- 2015(Because, From Today's year we want to show last 2 year data that means 2017 - 2 = 2015)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Num(Month(Today())))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This part will return in Number format of Today's month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finally, Makedate will return YYYY, MM, DD Format which means 2015, 04, 01 (Here Makedate consider the first day in default)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Date(MakeDate(Year(AddYears(Today(),-2)),Num(Month(Today()))),'YYYY-MM-DD')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, Finally this will return and change it as 2015-04-01 due to Date function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And, I highly recommend you to split and start from your end by help of Text object you will get to know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Helps to you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343548#M846736</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-05T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343549#M846737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only() will return one single value if there is only one single value. Otherwise will return null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343549#M846737</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-04-05T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trick</title>
      <link>https://community.qlik.com/t5/QlikView/Trick/m-p/1343550#M846738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, which is why I suggested using Min() instead &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 09:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trick/m-p/1343550#M846738</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-04-05T09:47:34Z</dc:date>
    </item>
  </channel>
</rss>

