<?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 Filtering data with expression editor in combo plot in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-data-with-expression-editor-in-combo-plot/m-p/1671413#M50773</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;quite new to Qlik Sense and I'm having troubles regarding expression editor in combo plots.&lt;/P&gt;&lt;P&gt;Let's say I have two different engines (for example two gas turbines, one named “Italy” and the other “Germany”) and I measured at different levels of power the efficiency of each turbine (a value regarding how much the turbine was performing well, on a scale from 0% to 100%). Now, with combo plots, I’d like to plot on the same chart (power on the X and efficiency on the Y) a comparison between the two turbines, as shown below (I used Excel to better explain the problem).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="graph example.PNG" style="width: 538px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27819i5D6A989EDC88D0C3/image-dimensions/538x256?v=v2" width="538" height="256" role="button" title="graph example.PNG" alt="graph example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the same turbine at the same power could have different efficiencies due to errors of measure, weather etc, as it happens for "Germany" at a power of 200MW.&lt;/P&gt;&lt;P&gt;In Qlik Sense I thought to create this chart importing the data as shown below and then using a combo chart.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="table.PNG" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27820iEBA7D4181576B145/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this combo chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I set dimension (X axis) equal to “Turbine Power”&lt;/LI&gt;&lt;LI&gt;To plot Italy's efficiency values, I set as measure (Y axis) the data in the column “Efficiency” when the column “Turbine Name” is equal to “Italy”&lt;/LI&gt;&lt;LI&gt;To plot Germany's efficiency values, I set a second measure, this time with the data in column “Efficiency” when the column “Turbine Name” is equal to “Germany”&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I’m having troubles writing in the editor the functions to define these two measures, I was trying something like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;= if(&amp;lt;Turbine Name&amp;gt;=’Italy’,&amp;lt;Turbine Power&amp;gt;,0)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And then I activated the flag to not plot null values, but this if-statement didn’t work. With the statement:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=Avg({&amp;lt;Turbine Name&amp;gt;={‘Italy’}&amp;gt;}&amp;lt;Turbine Power&amp;gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It did work, but since the same turbine at the same power could have different efficiency for the value of 200MW I don’t plot the right efficiency of “Germany”.&lt;/P&gt;&lt;P&gt;Maybe the solution it’s quite trivial but I can't find it.. can anyone help me? Thanks in advance!&lt;/P&gt;&lt;P&gt;NB: I have to use combo chart since the next step is to plot a third element, a continuous line pointing which is the best efficiency a turbine can achieve for each value of power from 100 to 200 MW.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:11:50 GMT</pubDate>
    <dc:creator>AndreaDugnani</dc:creator>
    <dc:date>2024-11-16T19:11:50Z</dc:date>
    <item>
      <title>Filtering data with expression editor in combo plot</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-data-with-expression-editor-in-combo-plot/m-p/1671413#M50773</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;quite new to Qlik Sense and I'm having troubles regarding expression editor in combo plots.&lt;/P&gt;&lt;P&gt;Let's say I have two different engines (for example two gas turbines, one named “Italy” and the other “Germany”) and I measured at different levels of power the efficiency of each turbine (a value regarding how much the turbine was performing well, on a scale from 0% to 100%). Now, with combo plots, I’d like to plot on the same chart (power on the X and efficiency on the Y) a comparison between the two turbines, as shown below (I used Excel to better explain the problem).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="graph example.PNG" style="width: 538px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27819i5D6A989EDC88D0C3/image-dimensions/538x256?v=v2" width="538" height="256" role="button" title="graph example.PNG" alt="graph example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the same turbine at the same power could have different efficiencies due to errors of measure, weather etc, as it happens for "Germany" at a power of 200MW.&lt;/P&gt;&lt;P&gt;In Qlik Sense I thought to create this chart importing the data as shown below and then using a combo chart.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="table.PNG" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27820iEBA7D4181576B145/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this combo chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I set dimension (X axis) equal to “Turbine Power”&lt;/LI&gt;&lt;LI&gt;To plot Italy's efficiency values, I set as measure (Y axis) the data in the column “Efficiency” when the column “Turbine Name” is equal to “Italy”&lt;/LI&gt;&lt;LI&gt;To plot Germany's efficiency values, I set a second measure, this time with the data in column “Efficiency” when the column “Turbine Name” is equal to “Germany”&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I’m having troubles writing in the editor the functions to define these two measures, I was trying something like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;= if(&amp;lt;Turbine Name&amp;gt;=’Italy’,&amp;lt;Turbine Power&amp;gt;,0)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And then I activated the flag to not plot null values, but this if-statement didn’t work. With the statement:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=Avg({&amp;lt;Turbine Name&amp;gt;={‘Italy’}&amp;gt;}&amp;lt;Turbine Power&amp;gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It did work, but since the same turbine at the same power could have different efficiency for the value of 200MW I don’t plot the right efficiency of “Germany”.&lt;/P&gt;&lt;P&gt;Maybe the solution it’s quite trivial but I can't find it.. can anyone help me? Thanks in advance!&lt;/P&gt;&lt;P&gt;NB: I have to use combo chart since the next step is to plot a third element, a continuous line pointing which is the best efficiency a turbine can achieve for each value of power from 100 to 200 MW.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-data-with-expression-editor-in-combo-plot/m-p/1671413#M50773</guid>
      <dc:creator>AndreaDugnani</dc:creator>
      <dc:date>2024-11-16T19:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data with expression editor in combo plot</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-data-with-expression-editor-in-combo-plot/m-p/1729417#M55615</link>
      <description>&lt;P&gt;I've realized there is no solution to a problem like this, the architecture of Qlik itself is based to prevent that the value of a dimension (X) could have more than one value for a measure (Y).&lt;/P&gt;&lt;P&gt;Every time a conflict like this arises (two or more values of a measure for a value of a dimension, like Power=200 for Germany and Efficiency = (20, 30)) it's necessary to specify an aggregation function ( Avg(Efficiency)=25, Max(Efficiency)=30 etc, so from two or more values it's possible to calculate a single value for the measure).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-data-with-expression-editor-in-combo-plot/m-p/1729417#M55615</guid>
      <dc:creator>AndreaDugnani</dc:creator>
      <dc:date>2020-07-21T08:41:54Z</dc:date>
    </item>
  </channel>
</rss>

