<?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: Set Analysis Expression &amp;lt;= $0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289806#M403465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a key for SurgicalCoid (keyfield for Group,Division,Market, Facility)&amp;amp;ProcedureSurgeonName&amp;amp;ProcGroupDesc AS VarianceID and included the set above with VarianceID as the Key, but the expression is giving the $ variance = to the Cost Per Case and not the correct variance as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variance.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157983_Variance.png" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 19:24:42 GMT</pubDate>
    <dc:creator>NickHoff</dc:creator>
    <dc:date>2017-03-28T19:24:42Z</dc:date>
    <item>
      <title>Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289803#M403462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside a pivot table I have an expression Cost Per Case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(SupplyChainLUOMTotalCost)/COUNT(DISTINCT SurgicalCaseSk)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a variable eCostBenchmark to calculate Benchmark depending on the Org Option selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is defined as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=@CostBenchmark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derived from the following INLINE table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CostLevel:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;@CostLevelID, @CostLevel, @CostDescriptionField, @CostBenchmark, @OrgLevel&lt;/P&gt;&lt;P&gt;1, HCA, HCACostDescription, BMHCA50PCT, CorporateName&lt;/P&gt;&lt;P&gt;2, Group, GroupCostDescription, BMGroup50PCT, GroupName&lt;/P&gt;&lt;P&gt;3, Division, DivisionCostDescription, BMDivision50PCT, DivisionName &lt;/P&gt;&lt;P&gt;4, Market, MarketCostDescription, BMMarket50PCT, MarketName,&lt;/P&gt;&lt;P&gt;5, Facility, FacilityCostDescription, BMFacility50PCT, Facility&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="font-size: 10pt;"&gt;Finally an expression to get the variance between [Benchmark] - [Cost Per Case].&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&gt;I only want my chart to display expressions where the variance between [Benchmark] - [Cost Per Case] &amp;lt;= 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following with no success:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ProcedureSurgeonName = {"=SUM(SupplyChainLUOMTotalCost)/COUNT(DISTINCT SurgicalCaseSk) - $(eBenchmarkCost) &amp;lt;= 0"}&amp;gt;}SupplyChainLUOMTotalCost)/COUNT({&amp;lt;ProcedureSurgeonName = {"=SUM(SupplyChainLUOMTotalCost)/COUNT(DISTINCT SurgicalCaseSk) - $(eBenchmarkCost) &amp;lt;= 0"}&amp;gt;}DISTINCT SurgicalCaseSk)&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289803#M403462</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-03-27T20:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289804#M403463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to take a look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 02:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289804#M403463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T02:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289805#M403464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to use if statement would be to create a new field from all your dimensions in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(GroupName, DivisionName, MarketName, Facility, ProcedureSurgeonName, ProcGroupDesc) as Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;STRONG&gt;UM({&amp;lt;Key = {"=Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;SupplyChainLUOMTotalCost)/COUNT(DISTINCT SurgicalCaseSk)&lt;/SPAN&gt; &amp;gt;= $(eCostBenchmark)"}&amp;gt;}SupplyChainLUOMTotalCost)/COUNT(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Key = {"=Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SupplyChainLUOMTotalCost)/COUNT(DISTINCT SurgicalCaseSk)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;gt;= $(eCostBenchmark)"}&amp;gt;}&lt;/SPAN&gt; DISTINCT SurgicalCaseSk)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this for your variable expression as well and see if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289805#M403464</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T18:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289806#M403465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a key for SurgicalCoid (keyfield for Group,Division,Market, Facility)&amp;amp;ProcedureSurgeonName&amp;amp;ProcGroupDesc AS VarianceID and included the set above with VarianceID as the Key, but the expression is giving the $ variance = to the Cost Per Case and not the correct variance as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variance.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157983_Variance.png" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289806#M403465</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-03-28T19:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289807#M403466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you subtract&amp;nbsp; the variable from your expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289807#M403466</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T19:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression &lt;= $0</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289808#M403467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it, working as intended.&amp;nbsp; Thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-lt-0/m-p/1289808#M403467</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-03-28T19:52:49Z</dc:date>
    </item>
  </channel>
</rss>

