<?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 Help needed with Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Set-Expression/m-p/50027#M784820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and I have the below expression that surprisingly works on QV Server but doesn't work on my local. I have the same datasets on local and server (i.e. all the fields that are used in this calculation is available in both places with appropriate data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Expression to Calculate backlog:&lt;/P&gt;&lt;P&gt;=Count({ &amp;lt;TRENDING_STATUS={'OPEN','IN PROGRESS'},SR_USER_TYPE = {'O'}&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;MASTER_DATE=&lt;/P&gt;&lt;P&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;&amp;lt;TRENDING_STATUS={'OPEN/END'},SR_USER_TYPE = {'O'} ,SR_STATUS-={'Closed','Restored','Resolved'},&lt;/P&gt;&lt;P&gt;MASTER_DATE=&lt;/P&gt;&lt;P&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P&gt; &amp;gt;&lt;/P&gt;&lt;P&gt; }DISTINCT SR_NUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FYI when I remove the MASTER_DATE portion, it works fine on my local as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MASTER_DATE=&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;how can I &lt;/SPAN&gt;decode /&amp;nbsp; debug&lt;SPAN style="font-size: 10pt;"&gt; the output of this &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MASTER_DATE criteria in Set Analysis? how can I print the output of it on a textbox?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help on how to debug / fix this will be highly appreciated. I cannot attach QVW and QVD files due to data security. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Gaurav&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>khigaurav999</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Help needed with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Set-Expression/m-p/50027#M784820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and I have the below expression that surprisingly works on QV Server but doesn't work on my local. I have the same datasets on local and server (i.e. all the fields that are used in this calculation is available in both places with appropriate data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Expression to Calculate backlog:&lt;/P&gt;&lt;P&gt;=Count({ &amp;lt;TRENDING_STATUS={'OPEN','IN PROGRESS'},SR_USER_TYPE = {'O'}&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;MASTER_DATE=&lt;/P&gt;&lt;P&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;+ &lt;/P&gt;&lt;P&gt;&amp;lt;TRENDING_STATUS={'OPEN/END'},SR_USER_TYPE = {'O'} ,SR_STATUS-={'Closed','Restored','Resolved'},&lt;/P&gt;&lt;P&gt;MASTER_DATE=&lt;/P&gt;&lt;P&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P&gt; &amp;gt;&lt;/P&gt;&lt;P&gt; }DISTINCT SR_NUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FYI when I remove the MASTER_DATE portion, it works fine on my local as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MASTER_DATE=&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;{$(=Chr(39) &amp;amp; Concat( Aggr(MAX(MASTER_DATE),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(=IF(Len(GetFieldSelections(MASTER_DATE,';',12))&amp;gt;0,'MASTER_DATE',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF(Len(GetFieldSelections(TRENDING_WEEK,';',12))&amp;gt;0,'TRENDING_WEEK','TRENDING_MONTH')))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;),Chr(39) &amp;amp; ',' &amp;amp; Chr(39)&amp;nbsp; ) &amp;amp; chr(39))}&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;how can I &lt;/SPAN&gt;decode /&amp;nbsp; debug&lt;SPAN style="font-size: 10pt;"&gt; the output of this &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MASTER_DATE criteria in Set Analysis? how can I print the output of it on a textbox?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help on how to debug / fix this will be highly appreciated. I cannot attach QVW and QVD files due to data security. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Gaurav&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-Set-Expression/m-p/50027#M784820</guid>
      <dc:creator>khigaurav999</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-Set-Expression/m-p/50028#M784821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used a table-chart for the expression and leave the label empty you could see there how the expression is evaluated. If you compared this on both sides I think you will find the differences between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 13:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-Set-Expression/m-p/50028#M784821</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-03-05T13:20:38Z</dc:date>
    </item>
  </channel>
</rss>

