<?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: Less than specific MonthName value in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539249#M746497</link>
    <description>&lt;P&gt;Thanks for the response, Sunny.&lt;/P&gt;&lt;P&gt;I have ProjectMonthName created using the MonthName function on the ProjectDate in the script.: MonthName(ProjectDate) As ProjectMonthName&lt;/P&gt;&lt;P&gt;My date format is set as 'DD/MM/YYYY'. I don't have a format set for MonthName prior to the table load. Should I define this?&lt;/P&gt;&lt;P&gt;However, it does work correctly for any expressions using MonthName(Today()).&lt;/P&gt;&lt;P&gt;Your suggestion returns zero values. What's interesting though, is that if I use your suggestion with 'greater than' it returns the overall total, so it does seem to be reading it in some manner.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 18:10:16 GMT</pubDate>
    <dc:creator>Qlik_ULG</dc:creator>
    <dc:date>2019-02-04T18:10:16Z</dc:date>
    <item>
      <title>Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539196#M746494</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently having an issue calculating a total using set analysis where the MonthName value is defined as less than a specific MonthName.&lt;/P&gt;&lt;P&gt;Calculating the total where MonthName is less than today's MonthName is fine:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sum({&amp;lt;[ProjectMonthName]={"&amp;lt;$(=Num(MonthName(today())))"}&amp;gt;} ProjectTotal)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Likewise any calculation where we require it equal to a specific MonthName is also fine:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sum({&amp;lt;[ProjectMonthName]={"Jan 2019"}&amp;gt;} ProjectTotal)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have been unable to return the correct values when trying to set it as less than a defined MonthName:&lt;/P&gt;&lt;P&gt;E.g.&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;sum({&amp;lt;[ProjectMonthName]={"&amp;lt;$(=Num('Jan 2019')"}&amp;gt;} ProjectTotal)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sum({&amp;lt;[ProjectMonthName]&amp;lt;={"Jan 2019"}&amp;gt;} ProjectTotal)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm aware that&amp;nbsp;neither of the&amp;nbsp;above syntax are correct for a number of reasons, but I haven't been able to find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in set analysis?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539196#M746494</guid>
      <dc:creator>Qlik_ULG</dc:creator>
      <dc:date>2024-11-16T04:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539209#M746495</link>
      <description>&lt;P&gt;Hi bro,&lt;BR /&gt;I do not know if there is a better solution but after investigating a bit I found the following solution and it worked very well.&lt;BR /&gt;in the master calendar add the following line:&lt;BR /&gt;(Year (PeriodDate) * 12) + num (month (PeriodDate)) AS MES_ANT,&lt;BR /&gt;then the result is a correlative number which can be compared with a previous one.&lt;BR /&gt;To be able to compare you must generate the variables that will be taken each month:&lt;BR /&gt;LET vMes00 = '= Max (MES_ANT)';&lt;BR /&gt;LET vMes01 = '= Max (MES_ANT) -1';&lt;/P&gt;&lt;P&gt;and in the expression of the graph:&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;MES_ANT = {'$ (vMes00)'}&amp;gt;} Value), this will be the selected month or the month of the record with the highest date,&lt;BR /&gt;and sum ({&amp;lt;MES_ANT = {'$ (vMes01)'}&amp;gt;} Value), this will be in the previous month and so on for how many months you want to compare. (You must generate the variable with the number of months to back that you want to analyze)&lt;/P&gt;&lt;P&gt;Results its something like this:&lt;/P&gt;&lt;P&gt;Let me know if you need more help.&lt;/P&gt;&lt;P&gt;Wicham..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Previous Month 2.png" style="width: 942px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5162iBFB7D25E210C8A92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Previous Month 2.png" alt="Previous Month 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Previous Month.png" style="width: 207px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5163i5EAD3E76EBE7DC04/image-size/large?v=v2&amp;amp;px=999" role="button" title="Previous Month.png" alt="Previous Month.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 16:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539209#M746495</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-04T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539224#M746496</link>
      <description>&lt;P&gt;How exactly do you create&amp;nbsp;ProjectMonthName in the script? May be try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;[ProjectMonthName] = {"&amp;lt;$(=Num(&lt;FONT color="#FF0000"&gt;Date#(&lt;/FONT&gt;'Jan 2019'&lt;FONT color="#FF0000"&gt;, 'MMM YYYY')&lt;/FONT&gt;)&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;"}&amp;gt;} ProjectTotal)&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539224#M746496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539249#M746497</link>
      <description>&lt;P&gt;Thanks for the response, Sunny.&lt;/P&gt;&lt;P&gt;I have ProjectMonthName created using the MonthName function on the ProjectDate in the script.: MonthName(ProjectDate) As ProjectMonthName&lt;/P&gt;&lt;P&gt;My date format is set as 'DD/MM/YYYY'. I don't have a format set for MonthName prior to the table load. Should I define this?&lt;/P&gt;&lt;P&gt;However, it does work correctly for any expressions using MonthName(Today()).&lt;/P&gt;&lt;P&gt;Your suggestion returns zero values. What's interesting though, is that if I use your suggestion with 'greater than' it returns the overall total, so it does seem to be reading it in some manner.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539249#M746497</guid>
      <dc:creator>Qlik_ULG</dc:creator>
      <dc:date>2019-02-04T18:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539254#M746498</link>
      <description>&lt;P&gt;Instead of creating the field using MonthName, try this&lt;/P&gt;&lt;PRE&gt;Date(MonthStart(ProjectDate), 'MMM-YYYY') As ProjectMonthName&lt;/PRE&gt;&lt;P&gt;and then try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;[ProjectMonthName] = {"&amp;lt;$(=Date(Date#('Jan-2019', 'MMM-YYYY'), 'MMM-YYYY'))"}&amp;gt;} ProjectTotal)&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539254#M746498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Less than specific MonthName value in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539704#M746499</link>
      <description>&lt;P&gt;Thank you, Sunny.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;resolved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-than-specific-MonthName-value-in-Set-Analysis/m-p/1539704#M746499</guid>
      <dc:creator>Qlik_ULG</dc:creator>
      <dc:date>2019-02-05T14:23:19Z</dc:date>
    </item>
  </channel>
</rss>

