<?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: How to Get a Dynamic Label for a Calculated KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1724020#M55101</link>
    <description>&lt;P&gt;Thank you Raj,&lt;/P&gt;&lt;P&gt;This works for my question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I had to amend the code to get the smallest value as well (second request from user).&amp;nbsp; Removing the minus sign in front of AGGR to gives that.&amp;nbsp; I had to use the RANK function to eliminate the nulls, but it works.&amp;nbsp; Thank you Raj!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 12:51:18 GMT</pubDate>
    <dc:creator>crichter14</dc:creator>
    <dc:date>2020-07-01T12:51:18Z</dc:date>
    <item>
      <title>How to Get a Dynamic Label for a Calculated KPI</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1721482#M54883</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Though a lot of reading I've gotten my KPI box to work...yay!&amp;nbsp; However,&amp;nbsp; I am wondering how to make the related label dynamic?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, I know that the Max QTY is 10, but in the KPI I want to show the label related to that KPI (i.e. Jan) in addition to the QTY.&lt;/P&gt;&lt;P&gt;How can I make that work?&amp;nbsp; Sorry if it's a basic question - I'm really struggling on this one.&amp;nbsp; I stole this table from another thread, but I don't want the quantity - I want the month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="288"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;MONTH&lt;/TD&gt;&lt;TD width="66"&gt;PRODUCT&lt;/TD&gt;&lt;TD width="158"&gt;QTY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;12345678&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;12345678&lt;/TD&gt;&lt;TD&gt;-5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;12345678&lt;/TD&gt;&lt;TD&gt;-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;12345678&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simplified example of my code.&amp;nbsp; I want the "CATEGORY" field related to the Maximum field value.&lt;/P&gt;&lt;P&gt;MAX(AGGR(Sum({$&amp;lt;&lt;BR /&gt;[SET_ANALYSIS_1]={"Example"}&amp;gt;}&lt;BR /&gt;SALES_AMOUNT)&lt;BR /&gt;/&lt;BR /&gt;Sum({$&amp;lt;&lt;BR /&gt;[SET_ANALYSIS_2]={"Example"}&amp;gt;}&lt;BR /&gt;SALES_AMOUNT_2)&lt;BR /&gt;,CATEGORY))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1721482#M54883</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2024-11-16T18:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get a Dynamic Label for a Calculated KPI</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1724015#M55100</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can achieve using FirstSortedValue function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt;(MONTH,-Aggr(Max(QTY),MONTH))&lt;/P&gt;&lt;P&gt;you can modify according to your example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1724015#M55100</guid>
      <dc:creator>raji6763</dc:creator>
      <dc:date>2020-07-01T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get a Dynamic Label for a Calculated KPI</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1724020#M55101</link>
      <description>&lt;P&gt;Thank you Raj,&lt;/P&gt;&lt;P&gt;This works for my question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I had to amend the code to get the smallest value as well (second request from user).&amp;nbsp; Removing the minus sign in front of AGGR to gives that.&amp;nbsp; I had to use the RANK function to eliminate the nulls, but it works.&amp;nbsp; Thank you Raj!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Get-a-Dynamic-Label-for-a-Calculated-KPI/m-p/1724020#M55101</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2020-07-01T12:51:18Z</dc:date>
    </item>
  </channel>
</rss>

