<?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: Help with vairable and time dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211916#M23302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/120207"&gt;juanjosemorales&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/77111"&gt;nicole_kowalsky&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will one of you have a chance to help me with this please!&lt;/P&gt;&lt;P&gt;THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 20:47:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-07T20:47:20Z</dc:date>
    <item>
      <title>Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211915#M23301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this formula which give me current month at all time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((Sum(aggr(count({&amp;lt;Month={'$(vMaxMonth)'},MonthYear=&amp;gt;}distinct USER_ID),MonthYear,Application_Version,[Application]))) / Count({&amp;lt;Month={'$(vMaxMonth)'}&amp;gt;} distinct MonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((Sum(aggr(count({&amp;lt;Month={'$(vPriorMonth)'},MonthYear=&amp;gt;}distinct USER_ID),MonthYear,Application_Version,[Application]))) / Count({&amp;lt;Month={'$(vPriorMonth)'}&amp;gt;} distinct MonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143128_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211915#M23301</guid>
      <dc:creator />
      <dc:date>2016-11-07T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211916#M23302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/120207"&gt;juanjosemorales&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/77111"&gt;nicole_kowalsky&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will one of you have a chance to help me with this please!&lt;/P&gt;&lt;P&gt;THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 20:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211916#M23302</guid>
      <dc:creator />
      <dc:date>2016-11-07T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211917#M23303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change this variable to:&lt;/P&gt;&lt;P&gt;LET vPriorMonthYear = '=date(addmonths(max(MonthYear),-1), ''MMM-YY'')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And change your expression to:&lt;/P&gt;&lt;P&gt;Sum(aggr(count({&amp;lt;MonthYear={'$(vPriorMonthYear)'}&amp;gt;}distinct USER_ID),[Application]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211917#M23303</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-11-07T21:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211918#M23304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll create another MonthStartDate field in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143170_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the front the current month is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=date(max(MonthYear)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;USER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Application_Version&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Application]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous month is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=monthstart(max(MonthStartDate),-1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=monthstart(max(MonthStartDate),-1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;USER_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Application_Version&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Application]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 03:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211918#M23304</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2016-11-08T03:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211919#M23305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! You are &lt;STRONG&gt;amazing!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211919#M23305</guid>
      <dc:creator />
      <dc:date>2016-11-08T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211920#M23306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select Nov-16, Nicole's solution will show 17 for "Previous Month", which is not right. It should be 24. (If you select Oct-16, you'll see current month is 24).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 19:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211920#M23306</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2016-11-08T19:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211921#M23307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fei, Thanks for the reply. Your solution fixes the previous month metric- but I am getting 178 for current month.&lt;/P&gt;&lt;P&gt;I was mainly trying to solve for the previous month number for past month and both of yours answers gets me the right result!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;STRONG&gt;so &lt;/STRONG&gt;much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211921#M23307</guid>
      <dc:creator />
      <dc:date>2016-11-08T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211922#M23308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be aware when you select any MonthYear, you have selected some application and application_version behind the scene:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143316_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you select Nov-16, there are only D, F and I in the Application_Version are associated and therefore Nicola's solution only shows the numbers for previous month and for D, F, I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in Oct-16, there is no userId for Application 1 and Application_Version D at all but Nicola's solution shows 2. That is because she aggr the expression by application only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help and most importantly you understand why:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211922#M23308</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2016-11-08T20:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with vairable and time dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211923#M23309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for finding that &lt;A href="https://community.qlik.com/qlik-users/70912"&gt;xufei123&lt;/A&gt;‌.&amp;nbsp; I randomly checked a bunch of months, but obviously not November.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-vairable-and-time-dimension/m-p/1211923#M23309</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-11-08T20:51:39Z</dc:date>
    </item>
  </channel>
</rss>

