<?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 Help - Value different in KPI vs Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653276#M48802</link>
    <description>&lt;P&gt;Not the best of ways to do it, but you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
	
    If([Month End Date] = Max(TOTAL [Month End Date]), Rangesum(Above(RangeSum(Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}PSTotalAssets)+
Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}SPV_PSTotalAssets),Above(Sum({&amp;lt;[Month End Date],[Year] = {'2019'}&amp;gt;}[Inflow/Outflow]),0,Rowno()))*
Sum({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}Aggr({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}Only({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}[Days in Month]),[Month End Date])),0,RowNo())))

, [Month End Date])&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 02 Dec 2019 18:49:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-12-02T18:49:47Z</dc:date>
    <item>
      <title>Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653237#M48793</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some difficulty with an expression where my formula in a Table is yielding different results than my formula in a KPI.&amp;nbsp; The value in the table is the desired value but I can't seem to get it to work in the KPI.&lt;/P&gt;&lt;P&gt;In the picture below I am expecting the value in the KPI to be the same as the value for 10/31/2019 in the table.&amp;nbsp; My only selection is a 10/31/2019 in a field called Month End Date.&amp;nbsp; I am trying to calculate a Rolling YTD value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rolling Formula.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24746i798967D3FC0C0F1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rolling Formula.png" alt="Rolling Formula.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the formula.&amp;nbsp; Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Rangesum(Above(RangeSum(Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}PSTotalAssets)+&lt;BR /&gt;Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}SPV_PSTotalAssets),Above(Sum({&amp;lt;[Month End Date],[Year] = {'2019'}&amp;gt;}[Inflow/Outflow]),0,Rowno()))*&lt;BR /&gt;Sum({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}Aggr({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}sum({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}[Days in Month]),[Month End Date])),0,RowNo()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653237#M48793</guid>
      <dc:creator>mjperreault</dc:creator>
      <dc:date>2024-11-16T03:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653256#M48796</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a QVF for this issue which should hopefully help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; was wondering if you'd be able to take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 17:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653256#M48796</guid>
      <dc:creator>mjperreault</dc:creator>
      <dc:date>2019-12-02T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653276#M48802</link>
      <description>&lt;P&gt;Not the best of ways to do it, but you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
	
    If([Month End Date] = Max(TOTAL [Month End Date]), Rangesum(Above(RangeSum(Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}PSTotalAssets)+
Sum(Total {&amp;lt;[Month End Date],[Month] = {'Jan'},Year = {'2019'}&amp;gt;}SPV_PSTotalAssets),Above(Sum({&amp;lt;[Month End Date],[Year] = {'2019'}&amp;gt;}[Inflow/Outflow]),0,Rowno()))*
Sum({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}Aggr({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}Only({&amp;lt;[Month End Date],Year = {'2019'}&amp;gt;}[Days in Month]),[Month End Date])),0,RowNo())))

, [Month End Date])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653276#M48802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-02T18:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653280#M48803</link>
      <description>&lt;P&gt;Simplified a little&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(

RangeSum(Sum(TOTAL {&amp;lt;[Month End Date], [Month] = {'Jan'}, Year = {'2019'}&amp;gt;} RangeSum(SPV_PSTotalAssets, PSTotalAssets)), RangeSum(Above(Sum({&amp;lt;[Month End Date], [Year] = {'2019'}&amp;gt;}[Inflow/Outflow]), 0, RowNo())))
*
Only({&amp;lt;[Month End Date], Year = {'2019'}&amp;gt;}[Days in Month])

, [Month End Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653280#M48803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-02T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653321#M48807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks so much for your responses! They are very helpful.&amp;nbsp; I prefer the "simplified" version as it seems cleaner however, the simplified version will only work if I do not select a Month End Date while the other version works when I choose different Months.&amp;nbsp; Any thoughts on a tweak to the simplified version to achieve this?&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;No Selection&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24760i7BD1020CD6337DB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik1.png" alt="Qlik1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;With Selection&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24761i642340F10D98CE0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik2.png" alt="Qlik2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 20:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653321#M48807</guid>
      <dc:creator>mjperreault</dc:creator>
      <dc:date>2019-12-02T20:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help - Value different in KPI vs Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653323#M48808</link>
      <description>&lt;P&gt;Think I figured it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Month End Date] = {"&amp;lt;=$(=Max([Month End Date]))"}, [Year] = {'2019'}&amp;gt;}Aggr({&amp;lt;[Month End Date], [Year] = {'2019'}&amp;gt;}&lt;/P&gt;&lt;P&gt;RangeSum(Sum(TOTAL {&amp;lt;[Month End Date], [Month] = {'Jan'}, Year = {'2019'}&amp;gt;} RangeSum(SPV_PSTotalAssets, PSTotalAssets)), RangeSum(Above(Sum({&amp;lt;[Month End Date], [Year] = {'2019'}&amp;gt;}[Inflow/Outflow]), 0, RowNo())))&lt;BR /&gt;*&lt;BR /&gt;Only({&amp;lt;[Month End Date], Year = {'2019'}&amp;gt;}[Days in Month])&lt;/P&gt;&lt;P&gt;, [Month End Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again Sunny&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 20:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Help-Value-different-in-KPI-vs-Table/m-p/1653323#M48808</guid>
      <dc:creator>mjperreault</dc:creator>
      <dc:date>2019-12-02T20:56:30Z</dc:date>
    </item>
  </channel>
</rss>

