<?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 Dynamically include or Exclude Dimensions after TOTAL qualifier in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-include-or-Exclude-Dimensions-after-TOTAL-qualifier/m-p/1627938#M46725</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having the below base expression : Sum(Sales)/Sum(TOTAL Sales)&lt;/P&gt;&lt;P&gt;If i select 'Region' Dimension from Adhoc Dimension list : Expression like : Sum(Sales)/Sum(TOTAL &amp;lt;Region&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;If i select one more Dimension 'Area' from Adhoc Dimension list : Expression like : Sum(Sales)/Sum(TOTAL &amp;lt;Region,Area&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;Note : If i selected one more dimension like 'City', we need to exclude form expression after TOTAL qualifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Means always i need to exclude City dimension from expression after TOTAL qualifier.&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:01:11 GMT</pubDate>
    <dc:creator>madhubabum</dc:creator>
    <dc:date>2024-11-16T20:01:11Z</dc:date>
    <item>
      <title>Dynamically include or Exclude Dimensions after TOTAL qualifier</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-include-or-Exclude-Dimensions-after-TOTAL-qualifier/m-p/1627938#M46725</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having the below base expression : Sum(Sales)/Sum(TOTAL Sales)&lt;/P&gt;&lt;P&gt;If i select 'Region' Dimension from Adhoc Dimension list : Expression like : Sum(Sales)/Sum(TOTAL &amp;lt;Region&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;If i select one more Dimension 'Area' from Adhoc Dimension list : Expression like : Sum(Sales)/Sum(TOTAL &amp;lt;Region,Area&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;Note : If i selected one more dimension like 'City', we need to exclude form expression after TOTAL qualifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Means always i need to exclude City dimension from expression after TOTAL qualifier.&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-include-or-Exclude-Dimensions-after-TOTAL-qualifier/m-p/1627938#M46725</guid>
      <dc:creator>madhubabum</dc:creator>
      <dc:date>2024-11-16T20:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically include or Exclude Dimensions after TOTAL qualifier</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-include-or-Exclude-Dimensions-after-TOTAL-qualifier/m-p/1627942#M46726</link>
      <description>&lt;P&gt;I think I would just add another dimension-list which controls the TOTAL and querying it within the expressions, like:&lt;/P&gt;&lt;P&gt;sum($(=if(getselectedcount(TotalList)=0, '', 'TOTAL &amp;lt;' &amp;amp; concat(TotalList, ',') &amp;amp; '&amp;gt;')) Sales)&lt;/P&gt;&lt;P&gt;To keep the expressions more readable you may outsource the adhoc-variable into a normal variable.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 07:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-include-or-Exclude-Dimensions-after-TOTAL-qualifier/m-p/1627942#M46726</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-25T07:33:07Z</dc:date>
    </item>
  </channel>
</rss>

