<?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: Urgent ** :( How to include 2/ 3 conditions in my expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8095#M623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou soso much for your help i really appreciate it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 09:12:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-06T09:12:05Z</dc:date>
    <item>
      <title>Urgent ** :( How to include 2/ 3 conditions in my expression</title>
      <link>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8092#M620</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 need to find the average assessment scores base on their most &lt;STRONG&gt;recent&lt;/STRONG&gt; submission for students from a university.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conditions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Region = ‘Ireland ‘&lt;/P&gt;&lt;P&gt;2. Most recent submission&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Meaning to say, the previous submissions before their final one wouldnt be included in the average&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;‌Since&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;score&lt;/EM&gt;&lt;/STRONG&gt; = scores for each student for each assessment ( has diff weightage ) &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;date_ submitted&lt;/STRONG&gt;&lt;/EM&gt; = the submitted date in days ( numerical value ) since the start of the double&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;date&lt;/EM&gt;&lt;/STRONG&gt; = final submission date in days since the start of the module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i figured to get score from the most recent submission, I had to find max(date_submitted)&amp;lt;= date.&lt;/P&gt;&lt;P&gt;This was what i tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;region={‘Ireland’}, max(date_submitted&amp;lt;=date)&amp;gt;} score*weight/100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it didn’t work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp; pls do help me if you are able to, Thankyou so much in advance, sincerely.&lt;/P&gt;&lt;P&gt;ps!! the formula to find the avg scores for my data without condition would be,&lt;/P&gt;&lt;P&gt;Avg(score*weight/100)&amp;nbsp; &amp;lt;—— it’s the Requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 06:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8092#M620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-28T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent ** :( How to include 2/ 3 conditions in my expression</title>
      <link>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8093#M621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;region = {'Ireland'}&amp;gt;} Aggr(Avg({&amp;lt;region = {'Ireland'}&amp;gt;} score * weight/100), &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;date_submitted), -&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;date_submitted)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 17:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8093#M621</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-01T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent ** :( How to include 2/ 3 conditions in my expression</title>
      <link>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8094#M622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only put dimensions on the left side of a set expression.&lt;/P&gt;&lt;P&gt;If you have a record key you could use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [RecKey]={"=date=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(date_submitted)&lt;/SPAN&gt;"}&lt;/P&gt;&lt;P&gt;and sometimes you need to evaluate the aggregates (can never figure out why/when you have to, so may have to play a bit):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [RecKey]={"=date=$(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(date_submitted))&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8094#M622</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-02-01T18:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent ** :( How to include 2/ 3 conditions in my expression</title>
      <link>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8095#M623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou soso much for your help i really appreciate it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Urgent-How-to-include-2-3-conditions-in-my-expression/m-p/8095#M623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T09:12:05Z</dc:date>
    </item>
  </channel>
</rss>

