<?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: Calculated Difference between measures at chart level in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1521065#M62616</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use valuelist to create custom columns.&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;=ValueList('Actaul','Budget','Var')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;Pick(Match(ValueList('Actual','Budget','Var'),'Actual','Budget','Var'),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Actual'}&amp;gt;}VALUE),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Budget'}&amp;gt;}VALUE),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Budget'}&amp;gt;}VALUE)-Sum({&amp;lt;TYPE={'Actual'}&amp;gt;}VALUE)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 483px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2215i21A897F580FFB8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 13:15:29 GMT</pubDate>
    <dc:creator>kaanerisen</dc:creator>
    <dc:date>2018-12-14T13:15:29Z</dc:date>
    <item>
      <title>Calculated Difference between measures at chart level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1520666#M62614</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We have a report where there is a need to add a measure that will always calculate difference between the columns before it.&amp;nbsp; Similar to below table&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD&gt;Var&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Measure1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Measure2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Measure3&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This could be done using &lt;STRONG&gt;Column(1) - Column(2)&lt;/STRONG&gt; in theory.&lt;/P&gt;&lt;P&gt;However if you notice here i have a Dimension that has {'Actual', 'Budget'} and i have three separate Measures, so Column(1) - Column(2) will only give me difference between the measures for the same value of the Dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this in Sense ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1520666#M62614</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2024-11-16T07:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Difference between measures at chart level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1520979#M62615</link>
      <description>From my understanding this type of behavior was present in QlikView ?&lt;BR /&gt;Where you could use the Column label as a reference and use it in your expressions</description>
      <pubDate>Fri, 14 Dec 2018 11:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1520979#M62615</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2018-12-14T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Difference between measures at chart level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1521065#M62616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use valuelist to create custom columns.&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;=ValueList('Actaul','Budget','Var')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;Pick(Match(ValueList('Actual','Budget','Var'),'Actual','Budget','Var'),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Actual'}&amp;gt;}VALUE),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Budget'}&amp;gt;}VALUE),&lt;BR /&gt;Sum({&amp;lt;TYPE={'Budget'}&amp;gt;}VALUE)-Sum({&amp;lt;TYPE={'Actual'}&amp;gt;}VALUE)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 483px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2215i21A897F580FFB8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1521065#M62616</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2018-12-14T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Difference between measures at chart level</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1521081#M62617</link>
      <description>&lt;P&gt;hi thanks for the post&lt;/P&gt;&lt;P&gt;This helps to a certain point but still facing some issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If i do not put a second measure the row stays blank for some reason:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with only one measure defined" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2216i9E84A707440491E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="with only one measure defined" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;with only one measure defined&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With Two Measures shows correctly" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2217iC2C06E703C79A6B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="With Two Measures shows correctly" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With Two Measures shows correctly&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With this approach i will need to create a new Var measure for each measure&amp;nbsp;already in my model&lt;UL&gt;&lt;LI&gt;As in if i have &lt;STRONG&gt;Sales &amp;amp; Cost &amp;amp; Revenue &amp;amp; HeadCount&lt;/STRONG&gt; as measures, i will need to have new &lt;STRONG&gt;[Sales with Var], [Cost with Var], [Revenue with Var], [Head Count with Var]&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;This will make it harder for self-service or maintenance&amp;nbsp;in the long term&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ideally, if there is a way to do as was present in QLikView, where you can just reference the Column&amp;nbsp;named Actual &amp;amp; Budget and get difference between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 14:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Difference-between-measures-at-chart-level/m-p/1521081#M62617</guid>
      <dc:creator>ghaliabed</dc:creator>
      <dc:date>2018-12-14T14:01:33Z</dc:date>
    </item>
  </channel>
</rss>

