<?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 Problem with a diagram to display different data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526790#M553880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;- The set of data I've downloaded encompasses data for employees in all areas of the company.&lt;/P&gt;&lt;P&gt;- I want the diagram to display the data for different areas, depending on a variable (that should be possible using a set_expression)&lt;/P&gt;&lt;P&gt;- To enable the user to select an area and change the variable accordingly, I have made in the script two inline tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "Plant" with the (numeric) values 56, 64 and 74&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "Area" with some (text) values&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The formula I have for my variable is currently like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Werk&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 64) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Bereich&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) = 'Staplerstrg')), 'SS_64', 'ges') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt; When the user has made these two selections (the plant is a numeric value, I can see it in a multi_selection_box (the value is on the right)), I want the variable to hold the text 'SS_64'; Depending on that, I would then enter some more formulas in the diagram with a specific set_expression to filter my data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anybody help me with that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 13:47:07 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-09-16T13:47:07Z</dc:date>
    <item>
      <title>Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526790#M553880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;- The set of data I've downloaded encompasses data for employees in all areas of the company.&lt;/P&gt;&lt;P&gt;- I want the diagram to display the data for different areas, depending on a variable (that should be possible using a set_expression)&lt;/P&gt;&lt;P&gt;- To enable the user to select an area and change the variable accordingly, I have made in the script two inline tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "Plant" with the (numeric) values 56, 64 and 74&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - "Area" with some (text) values&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The formula I have for my variable is currently like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Werk&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 64) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetCurrentSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Bereich&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) = 'Staplerstrg')), 'SS_64', 'ges') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt; When the user has made these two selections (the plant is a numeric value, I can see it in a multi_selection_box (the value is on the right)), I want the variable to hold the text 'SS_64'; Depending on that, I would then enter some more formulas in the diagram with a specific set_expression to filter my data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anybody help me with that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 13:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526790#M553880</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-16T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526791#M553881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little confused what you are trying to do - can you share the qvw also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526791#M553881</guid>
      <dc:creator />
      <dc:date>2013-09-16T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526792#M553882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have those formulas in yet, so the qvw in its current state would not tell you much.&lt;/P&gt;&lt;P&gt;What I want to do - I have done this already, but then I was loading data from an Excel report whereas now I am querying the database itself.&lt;/P&gt;&lt;P&gt;- There are several areas in our company for which I want to display presence_quotas.&lt;/P&gt;&lt;P&gt;- In the "old version", I was loading from an Excel report which had the figures for every one of those areas&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&amp;gt; The challenge then was merely which of them to display.&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&amp;gt; I solved this by adding several clones of the same formula in the diagram, each one of which would be displayed when a variable I had for the purpose had a specific value.&lt;/P&gt;&lt;P&gt;=&amp;gt; This variable was defined by user_selections in two different selection_boxes, connected by 'AND'.&lt;/P&gt;&lt;P&gt;=&amp;gt; I want to do the same now and the current step is merely getting the variable right. It's going to become much more complex, but once I have it working in a basic form, that will do. However, it doesn't work yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526792#M553882</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-16T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526793#M553883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knocked something up briefly - see attached.&amp;nbsp; I think the issue was with the GetCurrentSelections, which seems to be returning all your selections (see top right box in example), thus as a piece of logic it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've replaced this in your formula with only - see the second box.&amp;nbsp; This seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how you get on and whether or not this is the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526793#M553883</guid>
      <dc:creator />
      <dc:date>2013-09-16T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526794#M553884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, this seems to work.&lt;/P&gt;&lt;P&gt;I'm slightly puzzled because Getcurrentselections() worked fine in the "old version" - but if it works, so much the better.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526794#M553884</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-16T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526795#M553885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you confusing getcurrentselections with getfieldselections? The getcurrentselections function doesn't accept field names as parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you select only one value you don't need the getfieldselections function. The only function will do:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Werk&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) = 64) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Bereich&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) = 'Staplerstrg')), 'SS_64', 'ges')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526795#M553885</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-16T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526796#M553886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it.&lt;/P&gt;&lt;P&gt;I was confusing the two.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526796#M553886</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-09-16T16:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a diagram to display different data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526797#M553887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, glad I could help - I think that's my first correct answer!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-diagram-to-display-different-data/m-p/526797#M553887</guid>
      <dc:creator />
      <dc:date>2013-09-16T16:04:41Z</dc:date>
    </item>
  </channel>
</rss>

