<?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: Measure corresponding to specific set of dimensions in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1667001#M12153</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I have updated my original post to better explain what I need.&lt;/P&gt;&lt;P&gt;I want to solve it in the extension code if possible and not in load script of app.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2020 14:18:14 GMT</pubDate>
    <dc:creator>abdul-qadir</dc:creator>
    <dc:date>2020-01-18T14:18:14Z</dc:date>
    <item>
      <title>Measure corresponding to specific set of dimensions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1664832#M12114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am building a Qlik Sense Extension that has two dimensions and two measures. What I need is that the measure one values should be calculated on unique combination of values of both the dimensions (which is the default behavior), but measure two values should be calculated on unique values of only dimension one.&lt;/P&gt;&lt;P&gt;So for example, if my data is:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I chose dimension 1 as "A", dimension 2 as "B" and both measures as sum of "C", then in my extension,&amp;nbsp; "&lt;SPAN&gt;layout&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;qHyperCube&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;qDataPages&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN&gt;qMatrix" should return the following table.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;dimension1&lt;/TD&gt;&lt;TD&gt;dimension2&lt;/TD&gt;&lt;TD&gt;measure1&lt;/TD&gt;&lt;TD&gt;measure2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has one row per unique combination of values of dimension1 and dimension2. The measure1 is calculated on each unique combination of values of dimension1 and dimension2 (which is the default behavior). &lt;STRONG&gt;The measure2 is what I need help with. It should be calculated on each unique values of just dimension1 (and dimension2 should be ignored).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is this possible. If so, how?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 14:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1664832#M12114</guid>
      <dc:creator>abdul-qadir</dc:creator>
      <dc:date>2020-01-18T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure corresponding to specific set of dimensions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1664835#M12115</link>
      <description>&lt;P&gt;I didn't quite follow your descriptive text, but I think I'm able to help you to calculate your desired output anyhow.&lt;/P&gt;&lt;P&gt;See attahed picture and script below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 681px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26728i6CB08EA7E3642A1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;LOAD recno() as RecNo, * Inline [
A	B	C
1	2	5
1	2	5
1	3	5
] (delimiter is '	');&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 12 Jan 2020 20:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1664835#M12115</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-12T20:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Measure corresponding to specific set of dimensions</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1667001#M12153</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I have updated my original post to better explain what I need.&lt;/P&gt;&lt;P&gt;I want to solve it in the extension code if possible and not in load script of app.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 14:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Measure-corresponding-to-specific-set-of-dimensions/m-p/1667001#M12153</guid>
      <dc:creator>abdul-qadir</dc:creator>
      <dc:date>2020-01-18T14:18:14Z</dc:date>
    </item>
  </channel>
</rss>

