<?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: Set Analysis Expression is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105896#M366266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try like this at script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ExpiresDate&amp;gt;=AsOfDate,1,0) as Flag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;PostingAction = {'ADD'} , Flag={'1'}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DISTINCT JobBoardJobId)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 11:30:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-29T11:30:15Z</dc:date>
    <item>
      <title>Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105894#M366264</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;I want to write this if expression in Set Analysis -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;IF Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(count(distinct if(PostingAction = 'ADD' and ExpiresDate&amp;gt;=AsOfDate, JobBoardJobId))) (&lt;STRONG&gt;Expression is working fine&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Set Analysis Expression :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;PostingAction = {'ADD'} , ExpiresDate={"&amp;gt;=AsOfDate"}&amp;gt;} DISTINCT JobBoardJobId) (&lt;STRONG&gt;Expression is not working&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement the same in Set Analysis but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : AsOfDate is a field name. In Data Model, AsOfDate field is in one table , Expires Date and Action Date is in other table. Hence couldn't create a flag in data model in this case. That's why trying to implement it using Set Analysis on Front End.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me where I am doing wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105894#M366264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105895#M366265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is AsOfDate a variable or fieldname? If it is a field, then it seems you are looking for a row wise evaluation which isn't going to work for you because set analysis is evaluated once per chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105895#M366265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-29T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105896#M366266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try like this at script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ExpiresDate&amp;gt;=AsOfDate,1,0) as Flag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;PostingAction = {'ADD'} , Flag={'1'}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DISTINCT JobBoardJobId)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105896#M366266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105897#M366267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have updated my post now. As Of Date is a field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105897#M366267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105898#M366268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AsOfDate is a field name. In Data Model, AsOfDate field is in one table , Expires Date and Action Date is in other table. Hence couldn't create a flag in data model in this case. That's why trying to implement it using Set Analysis on Front End.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105898#M366268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105899#M366269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set DateFormat='DD/MMM/YYYY'; in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Set Analysis Expression :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;PostingAction = {'ADD'} , ExpiresDate={"&amp;gt;=$(=date(AsOfDate))"}&amp;gt;} DISTINCT JobBoardJobId)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;make sure both should have same format!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105899#M366269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105900#M366270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your description, you will probably need to stick with if statement. May be like this:&lt;/P&gt;&lt;P&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;&lt;STRONG&gt;Count(DISTINCT I{&amp;lt;PostingAction = {'ADD'}&amp;gt;} If(ExpiresDate&amp;gt;=AsOfDate, JobBoardJobId))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105900#M366270</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-29T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105901#M366271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Its not working when it compares row wise Dates. Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select one date, that time it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-is-not-working/m-p/1105901#M366271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T11:48:44Z</dc:date>
    </item>
  </channel>
</rss>

