<?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 KPI - Displaying a single static value based on a date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382892#M31517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display the latest value from a field in a KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxDate is declared as a variable and has the latest date from the table of information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Date' and 'SampleField' are both fields within my data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the following expression within my KPI and it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX({1&amp;lt;Date={vMaxDate}&amp;gt;} SampleField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't display anything. I tried copying and pasting the exact same expression into a table for debugging purposes but I receive an 'invalid dimension' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't mind understanding how to display the latest value (based on date) on app startup and then the KPI displayed value being overwritten once a selection is made. I'm not sure how to approach that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 20:53:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-24T20:53:57Z</dc:date>
    <item>
      <title>KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382892#M31517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display the latest value from a field in a KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxDate is declared as a variable and has the latest date from the table of information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Date' and 'SampleField' are both fields within my data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the following expression within my KPI and it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX({1&amp;lt;Date={vMaxDate}&amp;gt;} SampleField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't display anything. I tried copying and pasting the exact same expression into a table for debugging purposes but I receive an 'invalid dimension' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't mind understanding how to display the latest value (based on date) on app startup and then the KPI displayed value being overwritten once a selection is made. I'm not sure how to approach that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382892#M31517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382893#M31518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to display based on the latest date, and then respond to selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;MAX({&amp;lt;Date={$(=max(Date))}&amp;gt;} SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 21:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382893#M31518</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-24T21:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382894#M31519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response and your help.&amp;nbsp; I get the same behavior with your expression as I do with the one I originally posted.&amp;nbsp; Is there something I'm missing in terms of the configuration in the app?&amp;nbsp; Does it matter if the dates are out of order?&amp;nbsp; I'm not sure how to proceed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 21:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382894#M31519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T21:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382895#M31520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of possibilities. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Confirm that your dates are stored as numbers and the max is working.&amp;nbsp; To do that, create a KPI with the expression:&lt;/P&gt;&lt;P&gt;Max(Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If the max works, change your KPI to &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Sum({&amp;lt;Date={$(=max(Date))}&amp;gt;} SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;see if you are dealing with more than one value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 21:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382895#M31520</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-24T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382896#M31521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Tried it.&amp;nbsp; Max(Date) produces the last date within a KPI.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I tried Sum() instead of Max() and I have the same result.&amp;nbsp; No value is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 22:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382896#M31521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T22:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382897#M31522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used the following to get the max value of the selected period in a KPI object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(aggr(Sum({&amp;lt;Country={'Europe'}&amp;gt;}[United States]),EndDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 14:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382897#M31522</guid>
      <dc:creator />
      <dc:date>2017-08-29T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382898#M31523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding.&amp;nbsp; I've tried your suggestion and it didn't work for me.&amp;nbsp; I'll need to investigate this some more.&amp;nbsp; I may have to change my user interface requirements to accommodate what I can and can't do.&amp;nbsp; If I'm unable to solve it, I may change the status of this question to close it off and remove it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 15:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382898#M31523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382899#M31524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post:&lt;/P&gt;&lt;P&gt;1. A sample of the format of "Date". &lt;/P&gt;&lt;P&gt;2. The results of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3. The results of sum(SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If possible, upload a small sample qvf. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You may also want to try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Sum({&amp;lt;Date={'$(=Date(max(Date)))'}&amp;gt;} SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 15:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382899#M31524</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-29T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382900#M31525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression you just gave me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Sum({&amp;lt;Date={'$(=Date(max(Date)))'}&amp;gt;} SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... worked but I need to add one more modifier/filter for the city I'm interested in.&amp;nbsp; With the expression you've provided, it's adding all of the values in the SampleField on the max date and displaying it.&amp;nbsp; Once I'm able to add a filter for a single city, it should work.&amp;nbsp; I just need to try that now.&amp;nbsp; How would you recommend I add it to the expression you've provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 16:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382900#M31525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382901#M31526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Sum({&amp;lt;Date={'$(=Date(max(Date)))'}, City={'New York'}&amp;gt;} SampleField)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 17:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382901#M31526</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-29T17:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382902#M31527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much.&amp;nbsp; It worked.&amp;nbsp; I'll need to do more reading into the differences around using single quotes versus double quotes as well general expression syntax.&amp;nbsp; In addition, I tried using another basic aggregation function like Max() because I thought it should work as well.&amp;nbsp; It did.&amp;nbsp; I guess in this instance, because of the filters that are applied, it doesn't really matter which aggregation function you use. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 18:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382902#M31527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T18:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - Displaying a single static value based on a date</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382903#M31528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked. Yes, if the Set filters down to one value of SampleField, any aggregation function -- Max, Avg, Sum, Only -- will return the same results.&amp;nbsp; Technically, if you are expecting only one value and want to consider mutiple values as an error, Only() is the safest as it will return null if there is more than one value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 18:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Displaying-a-single-static-value-based-on-a-date/m-p/1382903#M31528</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-29T18:19:42Z</dc:date>
    </item>
  </channel>
</rss>

