<?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: How to use a dimension containing several expressions in a graph ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277419#M861256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works like a charm, great !&lt;/P&gt;&lt;P&gt;Now I just have to understand why &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 17:46:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-05T17:46:56Z</dc:date>
    <item>
      <title>How to use a dimension containing several expressions in a graph ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277416#M861253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to create two charts : a straight table + a radar that should display several KPI which I want to be able to select from a ListBox (if one is selected the charts should display it and hide it if not selected). Every KPI being calculated with a dedicated formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I tried to do&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the script, I have loaded my KPI expressions (KPI_Formula) and the KPI headers (KPI_Header) into a small table.&lt;/LI&gt;&lt;LI&gt;I have created a straight table with KPI_Header as a dimension and&amp;nbsp; $(=KPI_Formula) as the expression.&lt;/LI&gt;&lt;LI&gt;I have created a radar chart the same way&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that the two charts show the result correctly only when 1 KPI is selected.&lt;/P&gt;&lt;P&gt;When I select more than one KPI in my ListBox it doesn't work as I intended and shows no results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried differently in the straight table. I created one different expression for each KPI and set the Conditional show/hide according to the selection of the ListBox.&lt;/P&gt;&lt;P&gt;It works, but it is much less flexible that what I intended with the Headers and Formulas loaded in the script.&lt;/P&gt;&lt;P&gt;Also I can not do the Radar chart I want this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I could make my charts display the results when more than one KPI is selected ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&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/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277416#M861253</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a dimension containing several expressions in a graph ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277417#M861254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might have to share your application, but I can sort of see why it is clashing as it doesn't know what exactly to calculate when you have more than one selected (because dollar sign expansion only fires once and not per line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just had a similar issue and managed to dynamically build a pick/match formula to tell the system what it should be doing for each row but this may or may not work in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO in my case this works, I have a variable called v_exp_report_pickmatch and it is defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'pick(match(_ReportDetailedHeading,'&amp;amp;Concat(chr(39)&amp;amp;_ReportDetailedHeading,chr(39)&amp;amp;',',_ReportDetailedRow)&amp;amp;chr(39)&amp;amp;'),'&amp;amp;Concat(_ReportDetailedExpression,',',_ReportDetailedRow)&amp;amp;')'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_ReportDetailedHeading -is the KPI name which also appears in the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_ReportDetailedRow - is a simple rowno() on the table, it means everything gets ordered correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_ReportDetailedExpression - is the formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I then just use the following in my chart:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;$(=$(v_exp_report_pickmatch))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277417#M861254</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-05T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a dimension containing several expressions in a graph ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277418#M861255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Adam for your quick answer !&lt;/P&gt;&lt;P&gt;I will try this soon &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277418#M861255</guid>
      <dc:creator />
      <dc:date>2017-01-05T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a dimension containing several expressions in a graph ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277419#M861256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works like a charm, great !&lt;/P&gt;&lt;P&gt;Now I just have to understand why &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 17:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277419#M861256</guid>
      <dc:creator />
      <dc:date>2017-01-05T17:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a dimension containing several expressions in a graph ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277420#M861257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Valentin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll hopefully be doing a write up on this solution soon as I couldn't find anything like it on the forum (although there must be somewhere).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically all the pick(match does is say when the dimension value is this, use this formula, its surprisingly simple really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is because EVERY possible row is created in the pick(match formula, it doesn't matter that the dollar expansion only happens once for the chart because it only needs to happen once... if that makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 07:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-dimension-containing-several-expressions-in-a-graph/m-p/1277420#M861257</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-01-06T07:17:37Z</dc:date>
    </item>
  </channel>
</rss>

