<?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: Error in set analysis syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103635#M763475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I used the following fixed code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSFO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'LSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'LSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'ULSFO'),sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'ULSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),'Unknown'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am having the following error:The records are duplicated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209832_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 13:06:14 GMT</pubDate>
    <dc:creator>trishita</dc:creator>
    <dc:date>2018-08-03T13:06:14Z</dc:date>
    <item>
      <title>Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103632#M763472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one tell me what could be the error in using set analysis with multiple ifs..whenever i am using a set analysis statement individually, it is not showing any problem but whenever i AM TRYING TO USE IT FOR SEPARATE CASES its throwing error:&lt;/P&gt;&lt;P&gt;Garbage after expression ','&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSFO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000)),&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'LSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'LSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000)),&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000)),&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'ULSFO'),sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'ULSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000)),'Unknown'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Individual statements are working fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSFO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is still working but its not working whenever I am using multiple case statements&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/Error-in-set-analysis-syntax/m-p/103632#M763472</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103633#M763473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are closing all the if statement before the next one begins... try this&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;&lt;STRONG&gt;If(Match([Actual_Fuel_Type], 'HSFO'), Sum(TOTAL {$&amp;lt;Actual_Fuel_Type = {'HSFO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/STRONG&gt;(Match([Actual_Fuel_Type], 'LSDO'), Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'LSDO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/STRONG&gt;(Match([Actual_Fuel_Type], 'HSDO'), Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'HSDO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/STRONG&gt;(Match([Actual_Fuel_Type], 'ULSFO'), Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'ULSFO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000), 'Unknown'))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 12:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103633#M763473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-03T12:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103634#M763474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try this&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Pick(Match([Actual_Fuel_Type], 'HSFO'&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;, 'LSDO'&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;, 'HSDO'&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;, 'ULSFO'&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;) + 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;'Unknown',&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL {$&amp;lt;Actual_Fuel_Type = {'HSFO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;STRONG style="font-style: inherit;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'LSDO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;STRONG style="font-style: inherit;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'HSDO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;STRONG style="font-style: inherit;"&gt;TOTAL &lt;/STRONG&gt;{$&amp;lt;Actual_Fuel_Type = {'ULSFO'}&amp;gt;} FUEL_MASS_BEFORE_SOUNDING/1000))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 12:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103634#M763474</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-03T12:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103635#M763475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I used the following fixed code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSFO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'LSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'LSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSDO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'ULSFO'),sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'ULSFO'}&amp;gt;}FUEL_MASS_BEFORE_SOUNDING/ 1000),'Unknown'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am having the following error:The records are duplicated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209832_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103635#M763475</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-08-03T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103636#M763476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have hidden dimensions in your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103636#M763476</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-03T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103637#M763477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yah I created something fresh..Its working now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209834_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103637#M763477</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-08-03T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103638#M763478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, please close the thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-set-analysis-syntax/m-p/103638#M763478</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-03T13:25:21Z</dc:date>
    </item>
  </channel>
</rss>

