<?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 For Deminsions Selected From Input Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537968#M439261</link>
    <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I have a business case where we want to display pie charts based off of inputs that the user selects.&amp;nbsp; For context, they want to be able to toggle values between sales and units as expression values.&amp;nbsp;&amp;nbsp; The issue I have is that in order to display pie charts you must have positive values, unfortunately, the dataset we are using will also reflect negative values (e.g. credits/returns).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use a standard set analysis I can get past this.&amp;nbsp; Here is a static example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM({&amp;lt;[Sales Amt] = {'&amp;gt;0'},[Ship_to State] = {'OR'}&amp;gt;}[Sales Amt])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the above example, the expression that they want to toggle between is [Sales Amt].&lt;/P&gt;&lt;P&gt;I'm using an input box with a list constraint to select [Sales Amt] or [Units] and assign it to the variable vMeasure1.&lt;/P&gt;&lt;P&gt;I can't figure out how to modify my set analysis to recognize my first set analysis ([Sales Amt] = {'&amp;gt;0'}) with a variable input.&amp;nbsp; I was thinking something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM({&amp;lt;$(vMeasure1) = {'&amp;gt;0'},[Ship_to State] = {'OR'}&amp;gt;}$(vMeasure1)) &lt;/EM&gt;&amp;nbsp;which results in "Error in expression".&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:29:41 GMT</pubDate>
    <dc:creator>kevin_creese</dc:creator>
    <dc:date>2024-11-16T21:29:41Z</dc:date>
    <item>
      <title>Set Analysis For Deminsions Selected From Input Box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537968#M439261</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I have a business case where we want to display pie charts based off of inputs that the user selects.&amp;nbsp; For context, they want to be able to toggle values between sales and units as expression values.&amp;nbsp;&amp;nbsp; The issue I have is that in order to display pie charts you must have positive values, unfortunately, the dataset we are using will also reflect negative values (e.g. credits/returns).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use a standard set analysis I can get past this.&amp;nbsp; Here is a static example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM({&amp;lt;[Sales Amt] = {'&amp;gt;0'},[Ship_to State] = {'OR'}&amp;gt;}[Sales Amt])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the above example, the expression that they want to toggle between is [Sales Amt].&lt;/P&gt;&lt;P&gt;I'm using an input box with a list constraint to select [Sales Amt] or [Units] and assign it to the variable vMeasure1.&lt;/P&gt;&lt;P&gt;I can't figure out how to modify my set analysis to recognize my first set analysis ([Sales Amt] = {'&amp;gt;0'}) with a variable input.&amp;nbsp; I was thinking something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM({&amp;lt;$(vMeasure1) = {'&amp;gt;0'},[Ship_to State] = {'OR'}&amp;gt;}$(vMeasure1)) &lt;/EM&gt;&amp;nbsp;which results in "Error in expression".&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537968#M439261</guid>
      <dc:creator>kevin_creese</dc:creator>
      <dc:date>2024-11-16T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For Deminsions Selected From Input Box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537991#M439262</link>
      <description>Hi&lt;BR /&gt;havent used your way but during testing i am getting inconsistent results when i emulate your method (it works but when i compare against actual values its not correct; i am sure there will be theoritical reason why)&lt;BR /&gt;but below works correctly&lt;BR /&gt;Sum( {&amp;lt;$(vSetVariable)&amp;gt;} $(vSetAnalysis2))&lt;BR /&gt;basically vSetVariable contains the entire set analysis expression string. vSetAnalysis2 contains the measure column&lt;BR /&gt;Hope it helps</description>
      <pubDate>Thu, 31 Jan 2019 16:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537991#M439262</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-31T16:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For Deminsions Selected From Input Box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537996#M439263</link>
      <description>Actually managed to get below working&lt;BR /&gt;&lt;BR /&gt;Sum( {&amp;lt;$(vSetVariable3)={"&amp;lt;=10 &amp;gt;=2"}&amp;gt;} $(vSetAnalysisVariable2))&lt;BR /&gt;Did you check output of your variable?</description>
      <pubDate>Thu, 31 Jan 2019 16:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1537996#M439263</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-31T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For Deminsions Selected From Input Box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1538011#M439265</link>
      <description>&lt;P&gt;Dilipranjith,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thanks for the reply.&amp;nbsp; I think I have figured out a work around.&amp;nbsp; I attached a more detailed version of what I'm trying to do.&amp;nbsp; Take a look at the QVW file that I threw together with a simple inline data set.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I think I will have to utilize an if statement to confirm that the value I want to see is positive and then I can remove it from my set analysis completely.&amp;nbsp; This seems to work, but if anyone has a better way of doing this I would be happy to explore other options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I was trying to use the value from one variable to determine a value in the dimension as well as in the measure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1538011#M439265</guid>
      <dc:creator>kevin_creese</dc:creator>
      <dc:date>2019-01-31T16:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis For Deminsions Selected From Input Box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1538061#M439266</link>
      <description>Ah.. you need the sum. yes that maybe the best case approach. Only alternative i can think of is an aggr function inside the set. but no idea how that works with a variable</description>
      <pubDate>Thu, 31 Jan 2019 18:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-For-Deminsions-Selected-From-Input-Box/m-p/1538061#M439266</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-31T18:24:58Z</dc:date>
    </item>
  </channel>
</rss>

