<?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 Clarification Needed on Qlik Sense Expression for Dynamic Dimension in Bar Chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Clarification-Needed-on-Qlik-Sense-Expression-for-Dynamic/m-p/2158617#M93904</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently facing an issue with a Qlik Sense expression used in a bar chart to display the top 15 products with the highest revenue growth. The expression is as follows:&lt;/P&gt;
&lt;DIV class="bg-black rounded-md"&gt;
&lt;DIV class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-4 overflow-y-auto"&gt;&lt;CODE class="!whitespace-pre hljs language-qlik"&gt;Aggr(
    if(
        rank(
            SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMaxLimit), 'YYYY-MM-DD')&amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue)
            -
            SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMinLimit), 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date($(vDateMiddleLimit), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue)
        ) &amp;lt;= 15, 
        [Product Marketing Name]&amp;amp;[Product]&amp;amp;[Product Group]&amp;amp;[Product Series]&amp;amp;[Product Description]
    ), 
    [Product Marketing Name]
)
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;The expression, used as a dynamic dimension, aims to showcase the top 15 products with the highest revenue growth. However, it seems to aggregate the revenue for each [Product Marketing Name] value, resulting in unintended totalizations for different combinations.&lt;/P&gt;
&lt;P&gt;For example, considering the data below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH width="152.578px" height="45px"&gt;Product Marketing Name&lt;/TH&gt;
&lt;TH width="106.203px" height="45px"&gt;Product&lt;/TH&gt;
&lt;TH width="88.5469px" height="45px"&gt;Product Group&lt;/TH&gt;
&lt;TH width="88.8906px" height="45px"&gt;Product Series&lt;/TH&gt;
&lt;TH width="263.984px" height="45px"&gt;Product Description&lt;/TH&gt;
&lt;TH width="101.797px" height="45px"&gt;Revenue Growth&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,BLACK,EUB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 1,132,110&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,BLACK,EEB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 89,676&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,WHITE,EUB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 4,862&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;In the bar chart, it currently shows the total revenue growth for the Product Marketing Name&amp;nbsp;"Saphire b67 5G 128GO" as € 1,226,648, combining different combinations for the other dimensions. However, I would like to keep each combination separated in the bar chart, even if a Product Marketing Name appears more than once.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I would appreciate your expertise in helping me understand and rectify this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time and assistance.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 12:07:52 GMT</pubDate>
    <dc:creator>Fq95</dc:creator>
    <dc:date>2024-01-05T12:07:52Z</dc:date>
    <item>
      <title>Clarification Needed on Qlik Sense Expression for Dynamic Dimension in Bar Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Clarification-Needed-on-Qlik-Sense-Expression-for-Dynamic/m-p/2158617#M93904</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently facing an issue with a Qlik Sense expression used in a bar chart to display the top 15 products with the highest revenue growth. The expression is as follows:&lt;/P&gt;
&lt;DIV class="bg-black rounded-md"&gt;
&lt;DIV class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-4 overflow-y-auto"&gt;&lt;CODE class="!whitespace-pre hljs language-qlik"&gt;Aggr(
    if(
        rank(
            SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMaxLimit), 'YYYY-MM-DD')&amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue)
            -
            SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMinLimit), 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date($(vDateMiddleLimit), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue)
        ) &amp;lt;= 15, 
        [Product Marketing Name]&amp;amp;[Product]&amp;amp;[Product Group]&amp;amp;[Product Series]&amp;amp;[Product Description]
    ), 
    [Product Marketing Name]
)
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;The expression, used as a dynamic dimension, aims to showcase the top 15 products with the highest revenue growth. However, it seems to aggregate the revenue for each [Product Marketing Name] value, resulting in unintended totalizations for different combinations.&lt;/P&gt;
&lt;P&gt;For example, considering the data below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH width="152.578px" height="45px"&gt;Product Marketing Name&lt;/TH&gt;
&lt;TH width="106.203px" height="45px"&gt;Product&lt;/TH&gt;
&lt;TH width="88.5469px" height="45px"&gt;Product Group&lt;/TH&gt;
&lt;TH width="88.8906px" height="45px"&gt;Product Series&lt;/TH&gt;
&lt;TH width="263.984px" height="45px"&gt;Product Description&lt;/TH&gt;
&lt;TH width="101.797px" height="45px"&gt;Revenue Growth&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,BLACK,EUB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 1,132,110&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,BLACK,EEB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 89,676&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="152.578px" height="47px"&gt;Saphire b67 5G 128GO&lt;/TD&gt;
&lt;TD width="106.203px" height="47px"&gt;SMARTPHONE&lt;/TD&gt;
&lt;TD width="88.5469px" height="47px"&gt;MOBILE&lt;/TD&gt;
&lt;TD width="88.8906px" height="47px"&gt;A50 SERIES&lt;/TD&gt;
&lt;TD width="263.984px" height="47px"&gt;HHP MOBILE,SM-A546B/DS,WHITE,EUB&lt;/TD&gt;
&lt;TD width="101.797px" height="47px"&gt;€ 4,862&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;In the bar chart, it currently shows the total revenue growth for the Product Marketing Name&amp;nbsp;"Saphire b67 5G 128GO" as € 1,226,648, combining different combinations for the other dimensions. However, I would like to keep each combination separated in the bar chart, even if a Product Marketing Name appears more than once.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I would appreciate your expertise in helping me understand and rectify this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time and assistance.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 12:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Clarification-Needed-on-Qlik-Sense-Expression-for-Dynamic/m-p/2158617#M93904</guid>
      <dc:creator>Fq95</dc:creator>
      <dc:date>2024-01-05T12:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification Needed on Qlik Sense Expression for Dynamic Dimension in Bar Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Clarification-Needed-on-Qlik-Sense-Expression-for-Dynamic/m-p/2158937#M93948</link>
      <description>&lt;P&gt;if you want to separate by more dimensions then just add/remove them the aggregation scope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Aggr( if( rank( SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMaxLimit), 'YYYY-MM-DD')&amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue) - SUM({&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date($(vDateMinLimit), 'YYYY-MM-DD') &amp;amp; '&amp;lt;=' &amp;amp; Date($(vDateMiddleLimit), 'YYYY-MM-DD')"} ,MonthNum=,Year=,Quarter=&amp;gt;} Revenue) ) &amp;lt;= 15, [Product Marketing Name]&amp;amp;[Product]&amp;amp;[Product Group]&amp;amp;[Product Series]&amp;amp;[Product Description] )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;, [Product Marketing Name] &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,[Product]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,[Product Group]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,[Product Series]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,[Product Description]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 03:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Clarification-Needed-on-Qlik-Sense-Expression-for-Dynamic/m-p/2158937#M93948</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2024-01-08T03:13:52Z</dc:date>
    </item>
  </channel>
</rss>

