<?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 with 2 Conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770225#M59584</link>
    <description>&lt;P&gt;I use the LastActivity field in other places in my app so I don't really want to change it in the load script.&amp;nbsp; Is that the only way this will work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably should include year, I think I just forgot..&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 13:42:13 GMT</pubDate>
    <dc:creator>kdaniels-obrien</dc:creator>
    <dc:date>2020-12-23T13:42:13Z</dc:date>
    <item>
      <title>Set Analysis with 2 Conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770084#M59573</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a set expression to count the number of orders closed today. I have read through other community posts but was unable to find a solution that worked for me. I am having some syntax issues but I have very limited experience with set expressions so I'm not sure what I'm doing wrong.&amp;nbsp; Here is what I have now:&lt;/P&gt;&lt;P&gt;Count(DISTINCT {&amp;lt;[OrderStatus] = {"Closed"}, timestamp(LastActivity, 'MM/DD') = timestamp(vToday , 'MM/DD')&amp;gt;} Order)&lt;/P&gt;&lt;P&gt;I want to count the distinct orders where OrderStatus = Closed and LastActivity date = a variable vToday. I have to do some timestamp formatting to get LastActivity and vToday to have matching formats. The error says &lt;STRONG&gt;error in set&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;modifier.&amp;nbsp;&lt;/STRONG&gt; Is anyone able to tell me what is wrong with my expression/how to fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I use a variable vToday because there are some business cases where vToday does not equal Today()&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770084#M59573</guid>
      <dc:creator>kdaniels-obrien</dc:creator>
      <dc:date>2024-11-16T17:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with 2 Conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770103#M59574</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92437"&gt;@kdaniels-obrien&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change the format in the script itself&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date(LastActivity, 'MM/DD') as&amp;nbsp;LastActivity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in front end:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(DISTINCT {&amp;lt;[OrderStatus] = {"Closed"}, LastActivity = {"$(=Date(vToday , 'MM/DD'))"}&amp;gt;} Order)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but, you didn't include year in ur lastactivity.&amp;nbsp; Is it ur requirement??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 05:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770103#M59574</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-23T05:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with 2 Conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770225#M59584</link>
      <description>&lt;P&gt;I use the LastActivity field in other places in my app so I don't really want to change it in the load script.&amp;nbsp; Is that the only way this will work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably should include year, I think I just forgot..&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 13:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-2-Conditions/m-p/1770225#M59584</guid>
      <dc:creator>kdaniels-obrien</dc:creator>
      <dc:date>2020-12-23T13:42:13Z</dc:date>
    </item>
  </channel>
</rss>

