<?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 How to apply max function to a variable in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-apply-max-function-to-a-variable-in-set-analysis/m-p/1566217#M441750</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 different dates in my data set(Manufacture and Sale). Now the requirement is to create a KPI which always shows max year and month count.&lt;/P&gt;&lt;P&gt;for which i can write 2 expressions for each date, which works perfectly. ex:&lt;/P&gt;&lt;P&gt;='Manufacure Count: '&amp;amp;Count({&amp;lt;Mani_Month_Nm={"$(=max(Mani_Month_Nm))"}, Mani_Year={"$(=max(Mani_Year))"}, Mani_Month&amp;gt;}Item)&amp;nbsp;&lt;/P&gt;&lt;P&gt;='Sales Count: '&amp;amp;Count({&amp;lt;Sal_Month_Nm={"$(=max(Sal_Month_Nm))"}, Sal_Year={"$(=max(Sal_Year))"}, Sal_Month&amp;gt;}Item)&lt;/P&gt;&lt;P&gt;But, i want to avoid writing 2 expressions and make dynamic a single one.&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;$(vMoM)={"$(=max($(vMoM)))"}, $(vYoY)={"$(=max($(vYoY)))"}, $(vM)=&amp;gt;}Item)&lt;/P&gt;&lt;P&gt;Here the problem is applying max function to the variable(it is not working).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help(attached sample app).&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:55:34 GMT</pubDate>
    <dc:creator>sravankv</dc:creator>
    <dc:date>2024-11-16T03:55:34Z</dc:date>
    <item>
      <title>How to apply max function to a variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-max-function-to-a-variable-in-set-analysis/m-p/1566217#M441750</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 different dates in my data set(Manufacture and Sale). Now the requirement is to create a KPI which always shows max year and month count.&lt;/P&gt;&lt;P&gt;for which i can write 2 expressions for each date, which works perfectly. ex:&lt;/P&gt;&lt;P&gt;='Manufacure Count: '&amp;amp;Count({&amp;lt;Mani_Month_Nm={"$(=max(Mani_Month_Nm))"}, Mani_Year={"$(=max(Mani_Year))"}, Mani_Month&amp;gt;}Item)&amp;nbsp;&lt;/P&gt;&lt;P&gt;='Sales Count: '&amp;amp;Count({&amp;lt;Sal_Month_Nm={"$(=max(Sal_Month_Nm))"}, Sal_Year={"$(=max(Sal_Year))"}, Sal_Month&amp;gt;}Item)&lt;/P&gt;&lt;P&gt;But, i want to avoid writing 2 expressions and make dynamic a single one.&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;$(vMoM)={"$(=max($(vMoM)))"}, $(vYoY)={"$(=max($(vYoY)))"}, $(vM)=&amp;gt;}Item)&lt;/P&gt;&lt;P&gt;Here the problem is applying max function to the variable(it is not working).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help(attached sample app).&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-max-function-to-a-variable-in-set-analysis/m-p/1566217#M441750</guid>
      <dc:creator>sravankv</dc:creator>
      <dc:date>2024-11-16T03:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply max function to a variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-max-function-to-a-variable-in-set-analysis/m-p/1566251#M441757</link>
      <description>&lt;P&gt;How is the variables define?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 08:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-max-function-to-a-variable-in-set-analysis/m-p/1566251#M441757</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-08T08:42:41Z</dc:date>
    </item>
  </channel>
</rss>

