<?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 If statements and set analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statements-and-set-analysis-question/m-p/145454#M505556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on an expression using set analysis. The initial part works but then I also need to add a check for a date. The first part of the expression works where if the condition exists for each person in my chart, then I was to see "Yes" on the chart and if not then I see "No' on the chart. The RDS_Value here would either be 0 or 1 so if there is just one record for this type that is a 1, then I would see Yes. This part works by itself.&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;( (numericcount({$ &amp;lt;RDS_Type = {DailyCount} &amp;gt;} RDS_Value )) &amp;gt;0, 'Yes', 'No')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The second part that I am trying to include in the first expression is to check the dates. I need to check that the date that is associated with each record matches a particular date variable. If I check the dates in general with this expression, it works.&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;(RDSWeekValue=varWeek1Start, 1,0)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now I just need to get these 2 expressions combined.&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;(RDSWeekValue=varWeek1Start,if( (numericcount({$ &amp;lt;RDS_Type = {DailyCount} &amp;gt;} RDS_Value )) &amp;gt;0, 'Yes', 'No'),'No')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This combination above however did not work. Any other suggestions? Thank you!!&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2009 20:49:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-29T20:49:03Z</dc:date>
    <item>
      <title>If statements and set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-and-set-analysis-question/m-p/145454#M505556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on an expression using set analysis. The initial part works but then I also need to add a check for a date. The first part of the expression works where if the condition exists for each person in my chart, then I was to see "Yes" on the chart and if not then I see "No' on the chart. The RDS_Value here would either be 0 or 1 so if there is just one record for this type that is a 1, then I would see Yes. This part works by itself.&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;( (numericcount({$ &amp;lt;RDS_Type = {DailyCount} &amp;gt;} RDS_Value )) &amp;gt;0, 'Yes', 'No')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The second part that I am trying to include in the first expression is to check the dates. I need to check that the date that is associated with each record matches a particular date variable. If I check the dates in general with this expression, it works.&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;(RDSWeekValue=varWeek1Start, 1,0)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now I just need to get these 2 expressions combined.&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;(RDSWeekValue=varWeek1Start,if( (numericcount({$ &amp;lt;RDS_Type = {DailyCount} &amp;gt;} RDS_Value )) &amp;gt;0, 'Yes', 'No'),'No')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This combination above however did not work. Any other suggestions? Thank you!!&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 20:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-and-set-analysis-question/m-p/145454#M505556</guid>
      <dc:creator />
      <dc:date>2009-05-29T20:49:03Z</dc:date>
    </item>
  </channel>
</rss>

