<?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 Formula in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555577#M440668</link>
    <description>&lt;P&gt;=Num(Sum(&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;{$&amp;lt;[Data Type(B)] = {'eForecast Hrs System'}&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;*$&amp;lt;[Data Classification(B)] = {MaxString([Data Classification(B)])}&amp;gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;} &lt;/FONT&gt;&lt;BR /&gt;Hours),'#,##0.00')&lt;/P&gt;&lt;P&gt;I need help with this expression. Specifically the second part with the Data Classification. I intend for the formula to choose the latest value for Data Classification (F1, F2, etc...). This part of the formula works in a text box but I am unable to find the right format for the set analysis.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 17:25:55 GMT</pubDate>
    <dc:creator>lockematthewp</dc:creator>
    <dc:date>2019-03-12T17:25:55Z</dc:date>
    <item>
      <title>Formula in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555577#M440668</link>
      <description>&lt;P&gt;=Num(Sum(&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;{$&amp;lt;[Data Type(B)] = {'eForecast Hrs System'}&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;*$&amp;lt;[Data Classification(B)] = {MaxString([Data Classification(B)])}&amp;gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;} &lt;/FONT&gt;&lt;BR /&gt;Hours),'#,##0.00')&lt;/P&gt;&lt;P&gt;I need help with this expression. Specifically the second part with the Data Classification. I intend for the formula to choose the latest value for Data Classification (F1, F2, etc...). This part of the formula works in a text box but I am unable to find the right format for the set analysis.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555577#M440668</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-03-12T17:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555589#M440669</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=Num(Sum(&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;{$&amp;lt;[Data Type(B)] = {'eForecast Hrs System'}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;,[Data Classification(B)] = {"=MaxString([Data Classification(B)])"}&amp;gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;Hours),'#,##0.00')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555589#M440669</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2019-03-12T17:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555642#M440673</link>
      <description>&lt;P&gt;This format is valid but it is always returning 0. It works if I manually type in a value instead of the =MaxString.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555642#M440673</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-03-12T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555675#M440706</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Num(Sum(&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;{$&amp;lt;[Data Type(B)] = {'eForecast Hrs System'}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;,[Data Classification(B)] = {&lt;/FONT&gt;'$(=&lt;FONT color="#000000"&gt;MaxString([Data Classification(B)])&lt;/FONT&gt;)&lt;FONT color="#000000"&gt;'}&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;Hours),'#,##0.00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The only change I did is including $ sign before maxstring. In qlikview if you need to include a formula in set analysis we need to use $(=Formula) otherwise it will just take it as a String.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;"=MaxString([Data Classification(B)])" taken as string =MaxString([Data Classification(B)])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;'$(=MaxString([Data Classification(B)]))' gives you max value&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 21:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Set-Analysis/m-p/1555675#M440706</guid>
      <dc:creator>bharathadde</dc:creator>
      <dc:date>2019-03-12T21:18:48Z</dc:date>
    </item>
  </channel>
</rss>

