<?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 set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75550#M12484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a modality field where it has AMI,CT,IXR,DXR,MV,MR,PCMS,PROS,US,Other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have a bar chart and i have written the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF (wildMatch(GetFieldSelections(Modality), '*PCMS*','*ALL*','*NOT*') AND NOT Match(GetFieldSelections(Modality), 'NOT PCMS'),&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;Fiscal_Month={"&amp;gt;=$(=Date(AddMonths(Max(Fiscal_Month), -11)))&amp;lt;=$(=Date(Max(Fiscal_Month)))"} , Counter = {$(v_Min_Counter)},&lt;/P&gt;&lt;P&gt;Modality = {'PCMS'},ContractTypeL2 ={$(=concat(DISTINCT chr(39) &amp;amp; ContractTypeL2 &amp;amp; chr(39),','))}&amp;gt;}Adj_Cons_YTD_LY) )&lt;/P&gt;&lt;P&gt;,0)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;Fiscal_Month={"&amp;gt;=$(=Date(AddMonths(Max(Fiscal_Month), -11)))&amp;lt;=$(=Date(Max(Fiscal_Month)))"} , Counter = {96},&lt;/P&gt;&lt;P&gt;Modality = {$(=concat(DISTINCT chr(39) &amp;amp; Modality &amp;amp; chr(39),','))},ContractTypeL2 ={$(=concat(DISTINCT chr(39) &amp;amp; ContractTypeL2 &amp;amp; chr(39),','))}&amp;gt;}Adj_Cons_YTD_LY) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is working fine for all modalities except for PCMS . If i select PCMS the value is coming wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me what is going wrong in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached qvw for more reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 08:33:23 GMT</pubDate>
    <dc:creator>bharatkishore</dc:creator>
    <dc:date>2018-05-09T08:33:23Z</dc:date>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75550#M12484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a modality field where it has AMI,CT,IXR,DXR,MV,MR,PCMS,PROS,US,Other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have a bar chart and i have written the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF (wildMatch(GetFieldSelections(Modality), '*PCMS*','*ALL*','*NOT*') AND NOT Match(GetFieldSelections(Modality), 'NOT PCMS'),&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;Fiscal_Month={"&amp;gt;=$(=Date(AddMonths(Max(Fiscal_Month), -11)))&amp;lt;=$(=Date(Max(Fiscal_Month)))"} , Counter = {$(v_Min_Counter)},&lt;/P&gt;&lt;P&gt;Modality = {'PCMS'},ContractTypeL2 ={$(=concat(DISTINCT chr(39) &amp;amp; ContractTypeL2 &amp;amp; chr(39),','))}&amp;gt;}Adj_Cons_YTD_LY) )&lt;/P&gt;&lt;P&gt;,0)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(SUM({&amp;lt;Fiscal_Month={"&amp;gt;=$(=Date(AddMonths(Max(Fiscal_Month), -11)))&amp;lt;=$(=Date(Max(Fiscal_Month)))"} , Counter = {96},&lt;/P&gt;&lt;P&gt;Modality = {$(=concat(DISTINCT chr(39) &amp;amp; Modality &amp;amp; chr(39),','))},ContractTypeL2 ={$(=concat(DISTINCT chr(39) &amp;amp; ContractTypeL2 &amp;amp; chr(39),','))}&amp;gt;}Adj_Cons_YTD_LY) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is working fine for all modalities except for PCMS . If i select PCMS the value is coming wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me what is going wrong in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached qvw for more reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 08:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75550#M12484</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-09T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75551#M12485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are they wrong? I mean if the values are wrong, then what are the correct numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75551#M12485</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75552#M12486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you Sunny Bhai for reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For PCMS if you see in text box it is around 27thousand i should get that one but i am getting as 530k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Only if&amp;nbsp; i select pcms this is happening but if i select any other in modality the value is exactly same.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75552#M12486</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-09T09:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75553#M12487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you had an extra piece in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Counter = {$(v_Min_Counter)}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed that and it seems to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201965_Capture.PNG" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75553#M12487</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75554#M12488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sunny Bhai.. i have removed it is assigned as min of that one it is by default taking the 1 (which is the minimum)value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you sunny bhai..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/75554#M12488</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-09T12:03:19Z</dc:date>
    </item>
  </channel>
</rss>

