<?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: QlikSense [2.1.1] Working with multiple HyperCubes in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006517#M3948</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 think you have made the requirement a little complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you achieve this using a drill down dimmension?&lt;/P&gt;&lt;P&gt;Using this you will be able to achieve what you are looking for very easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Dec 2015 12:28:57 GMT</pubDate>
    <dc:creator>reddy-s</dc:creator>
    <dc:date>2015-12-31T12:28:57Z</dc:date>
    <item>
      <title>QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006513#M3944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create an extension with 2 levels of data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- 1 level with data aggregated by Dimension1&lt;/P&gt;&lt;P&gt;- 1 level with data aggregated by Dimension2, for EACH Dimension1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have Dimension1 = Country and Dimension2 = City&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to&lt;/P&gt;&lt;P&gt;- measure &lt;STRONG&gt;Average Age&lt;/STRONG&gt; ( avg(Age) ) by &lt;STRONG&gt;Country&lt;/STRONG&gt; and place on a map each &lt;STRONG&gt;Country&lt;/STRONG&gt; with a color-coding related to the &lt;STRONG&gt;Average Age&lt;/STRONG&gt; of this &lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- when I click on a &lt;STRONG&gt;Country&lt;/STRONG&gt;, no filter is applied on the model but I can see in a simple table :&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;STRONG&gt;Average Age&lt;/STRONG&gt; ( avg(Age) ) by &lt;STRONG&gt;City&lt;/STRONG&gt; &lt;SPAN style="color: #000000; text-decoration: underline;"&gt;of the selected &lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I don't want to do dumb maths like calculating the average &lt;STRONG&gt;&lt;EM&gt;City average Age&lt;/EM&gt;&lt;/STRONG&gt; of each &lt;STRONG&gt;Country&lt;/STRONG&gt;. I could do something more clever but it's not the point here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how could I do 2 Hypercubes :&lt;/P&gt;&lt;P&gt;- 1 for &lt;STRONG&gt;Average Age&lt;/STRONG&gt; by &lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- &lt;/STRONG&gt;1 for &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Average Age&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; by &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/SPAN&gt; and &lt;STRONG&gt;City&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;I can create 2 HyperCubes in the &lt;EM&gt;initialProperties&lt;/EM&gt; of my extension but I find only 1 in the &lt;EM&gt;layout&lt;/EM&gt; object of the &lt;EM&gt;paint&lt;/EM&gt; function so I guess that's not the way to do it.&lt;/P&gt;&lt;P&gt;I have tried to create an HyperCubeDef inside the &lt;EM&gt;paint&lt;/EM&gt; function too, but i can't retrieve data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedbacks, ideas, suggestions, advices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 23:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006513#M3944</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2015-12-30T23:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006514#M3945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok 1 solution found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start like that:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;define( ['//code.jquery.com/ui/1.11.4/jquery-ui.js','js/qlik'],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function ( jqueryui, qlik ) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'use strict';&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in paint:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;paint: function ( $element, layout ) {&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var app = qlik.currApp(this);&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define HyperCube:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;var qHyperCubeDef2 = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDimensions : [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { qDef : {qFieldDefs : ["Place"]}}, { qDef : {qFieldDefs : ["Result"]}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qMeasures : [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { qDef : {qDef : "count(distinct Fact_Id)", qLabel :"Nb Cases"}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qInitialDataFetch: [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qWidth: 10,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qHeight: 100&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; };&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create hypercube using Qlik.CreateCube:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&amp;nbsp; app.createCube(qHyperCubeDef2, function(reply) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('Second HyperCube :', reply.qHyperCube);&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Put your code inside function reply. I guess it's asynchronous (you can tell when your data will be ready) so you have to build your rendering code inside this function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems it's possible to put more than 1 HyperCube in initialproperties. I have successfully do this but I don't understand how I can access to this second HyperCube in paint. "layout" contains only 1 HyperCube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 00:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006514#M3945</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2015-12-31T00:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006515#M3946</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;also have a look at &lt;A href="https://github.com/stefanwalther/sense-extension-recipes/tree/master/HyperCubeOnTheFly" title="https://github.com/stefanwalther/sense-extension-recipes/tree/master/HyperCubeOnTheFly"&gt;https://github.com/stefanwalther/sense-extension-recipes/tree/master/HyperCubeOnTheFly&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 01:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006515#M3946</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-12-31T01:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006516#M3947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but your example is far beyond my understanding : it seems you don't need &lt;EM&gt;&lt;STRONG&gt;paint()&lt;/STRONG&gt;&lt;/EM&gt; function and I don't event understand your 2-lines HTML. Anyway I will take the time to look at your examples to try to learn thinks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 10:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006516#M3947</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2015-12-31T10:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006517#M3948</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 think you have made the requirement a little complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you achieve this using a drill down dimmension?&lt;/P&gt;&lt;P&gt;Using this you will be able to achieve what you are looking for very easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 12:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006517#M3948</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2015-12-31T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006518#M3949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mhmmm it's a pretty good idea indeed. I don't know how to define a pivot table hypercube and browse it with javascript but if I can find out how to do that, it will solve this issue with elegance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some pointers on how to define a &lt;SPAN style="font-size: 13.3333px;"&gt;pivot table hypercube ? Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 13:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006518#M3949</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2015-12-31T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense [2.1.1] Working with multiple HyperCubes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006519#M3950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nstefaniuk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to do any thing new here. When the visualization first render with the first level of drill, the hyper cube is only going to give you the first level. For example&amp;nbsp; lets consider there are 2 levels A and B. So when you use the drill down dimension in your visual, the hypercube is going to aggregate the measures for level A and when you happen to make a selection and drill down, the hyper cube is recreated with all the distinct values in level B and aggregate the measures accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangram Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 17:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-2-1-1-Working-with-multiple-HyperCubes/m-p/1006519#M3950</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2015-12-31T17:27:23Z</dc:date>
    </item>
  </channel>
</rss>

