<?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: SUM of a value within a max date range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607101#M45015</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Sunny_talwar&lt;/P&gt;&lt;P&gt;Still no luck! the sum is always zero, no mater what the date is.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 15:34:28 GMT</pubDate>
    <dc:creator>McCloudPT</dc:creator>
    <dc:date>2019-07-29T15:34:28Z</dc:date>
    <item>
      <title>SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606215#M44881</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I'm currently struggling to get a final SUM value of a given max date, when we select a date range with Date Picker.&lt;/P&gt;&lt;P&gt;I have values per day that I want to show in a Map, but the sum adds the values from all days in the date range.&lt;/P&gt;&lt;P&gt;I need to show the sum of one day only. I can choose the max day of a range with: "Date(Max(Floor(DateDay), 1)) " but the final expression does not provide me the values I need.&lt;/P&gt;&lt;P&gt;Not working: =sum({&amp;lt;TvPlatform = {'VTV'},DateDay={'=$(Date(Max(Floor(DateDay),1)))'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606215#M44881</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2024-11-16T20:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606521#M44925</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Refer below example,&lt;/P&gt;&lt;P&gt;Create variable in qliksense Front&amp;nbsp; call vMaxDate=&amp;nbsp;=date(max(OrderDate), 'YYYY-MM-DD')&amp;nbsp; as i&amp;nbsp; shown in attached imag,&lt;/P&gt;&lt;P&gt;and&amp;nbsp; use that variable in SetAnalysis&amp;nbsp; as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;OrderDate={'$(vMaxDate)'} &amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable creation.PNG" style="width: 793px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16095i723C250D6AE1F2BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="variable creation.PNG" alt="variable creation.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606521#M44925</guid>
      <dc:creator>mahaveerbiraj</dc:creator>
      <dc:date>2019-07-26T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606612#M44938</link>
      <description>&lt;P&gt;You can also try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;TvPlatform = {'VTV'}, DateDay = {"$(=Date(Max(Floor(DateDay))))"}&amp;gt;} Value)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 18:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606612#M44938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-26T18:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606908#M44993</link>
      <description>&lt;P&gt;Hello Sunny_talwar, thanks for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add more info, i'm using a map with pie charts were the data measure is the sum of the value filtered by the TvPlatform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution presented gives zero costumers in the pie charts with the formula: &lt;STRONG&gt;Sum({&amp;lt;TvPlatform = {'VTV'}, DateDay = {"$(=Date(Max(Floor(DateDay))))"}&amp;gt;}Value)&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the&amp;nbsp;&lt;STRONG&gt;=SUM({&amp;lt;$(DateDay = {"$(=$max(DateDay)-1)")},TvPlatform = {'VTV'}&amp;gt;}Value)&lt;BR /&gt;&lt;/STRONG&gt;I get the total sum of all days, making the pie charts assume the total costumers in it's size along the map.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 10:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606908#M44993</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2019-07-29T10:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606909#M44994</link>
      <description>&lt;P&gt;Hello Mahaveerbiraj, thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did as requested and the result is also zero per pie chart in the map &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 10:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606909#M44994</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2019-07-29T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606959#M44999</link>
      <description>&lt;P&gt;What does your DateDay field format look like? Is it DD/MM/YYYY or MM/DD/YYYY or D-MMM-YYYY or something else? Also, is it only date or is it a timestamp?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 11:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1606959#M44999</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-29T11:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607031#M45008</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;It's defined like this:&lt;/P&gt;&lt;P&gt;Date#(Date(StartDate,'DD-MM-YYYY'),'DD-MM-YYYY') as DateDay&lt;/P&gt;&lt;P&gt;It's not a timestamp.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 13:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607031#M45008</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2019-07-29T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607051#M45011</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date(Floor(StartDate),'DD-MM-YYYY') as DateDay&lt;/LI-CODE&gt;&lt;P&gt;and then this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;TvPlatform = {'VTV'}, DateDay = {"$(=Date(Max(DateDay), 'DD-MM-YYYY'))"}&amp;gt;} Value)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 13:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607051#M45011</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-29T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607101#M45015</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Sunny_talwar&lt;/P&gt;&lt;P&gt;Still no luck! the sum is always zero, no mater what the date is.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607101#M45015</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2019-07-29T15:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607110#M45017</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 16:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1607110#M45017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-29T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUM of a value within a max date range</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1609466#M45268</link>
      <description>&lt;P&gt;Since the set analysis was not cooperating, one of my colleagues found a weird but working solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;TvPlatform = {'VTV'}&amp;gt;}Value * if(DateDay=RangeMin('$(=date(max(aggr(nodistinct max(DateDay), Distrito))))',Today()-1),1,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every date but the max one is discarded by the * if expression!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 15:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-of-a-value-within-a-max-date-range/m-p/1609466#M45268</guid>
      <dc:creator>McCloudPT</dc:creator>
      <dc:date>2019-08-05T15:09:56Z</dc:date>
    </item>
  </channel>
</rss>

