<?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: Select a field  from alternate state in a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523112#M749372</link>
    <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;PRE&gt;=Sum({COMPARATOR&amp;lt;Hour = {"&amp;lt;=&lt;FONT color="#FF0000"&gt;$(=&lt;/FONT&gt;MaxString({COMPARATOR}[Hour])&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;"}, [Store_id] = $::[Store_Id]&amp;gt;} [Sales])&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 Dec 2018 16:12:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-20T16:12:45Z</dc:date>
    <item>
      <title>Select a field  from alternate state in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523109#M749371</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a expression which is filtered by a selection in field within alternate state.&lt;/P&gt;&lt;P&gt;The formula is as follows :&lt;/P&gt;&lt;P&gt;=Sum({COMPARATOR&amp;lt;Hour={"&amp;lt;=&lt;FONT color="#0000FF"&gt;17&lt;/FONT&gt;"},[Store_id]=$::[Store_Id]&amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;It selects all sales for the day until 17:00 o'clock (store selection is optional).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the hour selection should be dynamic rather than fixed (user interaction).&lt;/P&gt;&lt;P&gt;So, I figured out the formula like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({COMPARATOR&amp;lt;Hour={"&amp;lt;=&lt;FONT color="#0000FF"&gt;MaxString({COMPARATOR}[Hour])&lt;/FONT&gt;"},[Store_id]=$::[Store_Id]&amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it'not working. I guess the syntax is wrong and QV could not evaluate&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;MaxString({COMPARATOR}[Hour])&lt;/SPAN&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523109#M749371</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select a field  from alternate state in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523112#M749372</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;PRE&gt;=Sum({COMPARATOR&amp;lt;Hour = {"&amp;lt;=&lt;FONT color="#FF0000"&gt;$(=&lt;/FONT&gt;MaxString({COMPARATOR}[Hour])&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;"}, [Store_id] = $::[Store_Id]&amp;gt;} [Sales])&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523112#M749372</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select a field  from alternate state in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523113#M749373</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Glad to see you around :-).&lt;/P&gt;&lt;P&gt;Thanks, it worked !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-field-from-alternate-state-in-a-set-analysis/m-p/1523113#M749373</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-12-20T16:14:30Z</dc:date>
    </item>
  </channel>
</rss>

