<?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: Dynamically add fields to aggr in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095384#M18382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to make expressions commonly available to users is to provide a template App with master items predefined to variables that will contain the calculation expression and are loaded at App process time from the&lt;/P&gt;&lt;P&gt;dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation expression is defined in a Business Dictionary that resides e.g. in SQL Server and is maintained by&lt;/P&gt;&lt;P&gt;business stake holders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Self service user will have available all possible calculations for their domain of interest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented a Business Dictionary for my latest client using the above methodology, I am happy to share the technical specification for the dictionary and how it interacts with QlikSense if you wish, no this is not a sell job, just would like to see more done around data governance and QlikSense integration to a governance model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can email me here at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:paul.scotchford@awari.com.au"&gt;paul.scotchford@awari.com.au&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 01:42:45 GMT</pubDate>
    <dc:creator>paul_scotchford</dc:creator>
    <dc:date>2016-01-29T01:42:45Z</dc:date>
    <item>
      <title>Dynamically add fields to aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095380#M18378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that requires the addition of a dimension using aggr e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(aggr(&amp;lt;some expression&amp;gt;,[Category]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this expression in a host of different charts, with different dimensions, which means that each time I need to add the relevant dimensions to the aggr for the expression to calculate ... e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar chart by Month ... &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;sum(aggr(&amp;lt;some expression&amp;gt;,[Month],[Category]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table by Region ... &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;sum(aggr(&amp;lt;some expression&amp;gt;,[Region],[Category]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table by Drill-down group ... &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;sum(aggr(&amp;lt;some expression&amp;gt;,&amp;lt;current drill down group field&amp;gt;,[Category]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Pivot table by Region and Month ... &lt;EM style="font-size: 13.3333px;"&gt;sum(aggr(&amp;lt;some expression&amp;gt;,[Region],[Month],[Category]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a perfect world I'd like to be able to add this expression to the master items and allow my users to be able to drop it into a chart with any of these dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I need a way to derive the dimensions in play on an expression at a particular time. GetCurrentField() isn't available to me in Sense and would only cover the drill-down option anyway. Dimensionality() returns the number of the dimensions but not the field names. Even with a parametised dollar expansion I wouldn't be able to create one master item (though this would at least make maintenance of the expression easier). Anyone know of any tricks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 17:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095380#M18378</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-28T17:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add fields to aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095381#M18379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do that using $-sign expansions. Add a $-sign expression with a formula that returns a comma-separated list of desired dimensions or an empty string if no dimensions need to be added. Assuming that the list of Dimensions to choose from is a Field, the calculation will likely be based on the CONCAT() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095381#M18379</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-28T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add fields to aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095382#M18380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see how I could make it easier for myself to code in different dimensions in different situations as you describe, but that rather defies the point of having a master item measure that my users can deploy in their own objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I really need is a way for the expression to "detect" the dimensions being used in the chart it is added to so that it can adjust the dimensions in the aggr accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 22:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095382#M18380</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-28T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add fields to aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095383#M18381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought was that you offer your users a list of available Dimensions and they can select what dimensions should participate in the chart. That's a technique that is common in QlikView. I realize that it might not be as useful in Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there is no function (AFAIK) in either one of the two Qlik products, that could tell you dynamically what dimensions have been selected for a given chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would make a cool Idea, though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 01:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095383#M18381</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-29T01:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add fields to aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095384#M18382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to make expressions commonly available to users is to provide a template App with master items predefined to variables that will contain the calculation expression and are loaded at App process time from the&lt;/P&gt;&lt;P&gt;dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation expression is defined in a Business Dictionary that resides e.g. in SQL Server and is maintained by&lt;/P&gt;&lt;P&gt;business stake holders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Self service user will have available all possible calculations for their domain of interest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented a Business Dictionary for my latest client using the above methodology, I am happy to share the technical specification for the dictionary and how it interacts with QlikSense if you wish, no this is not a sell job, just would like to see more done around data governance and QlikSense integration to a governance model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can email me here at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:paul.scotchford@awari.com.au"&gt;paul.scotchford@awari.com.au&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 01:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-fields-to-aggr/m-p/1095384#M18382</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2016-01-29T01:42:45Z</dc:date>
    </item>
  </channel>
</rss>

