<?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 Count(TOTAL &amp;lt;[Master Dimension]&amp;gt; Product) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45839#M3077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If possible can someone point me at documentation explaining why this works even though there is an error in the expression editor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that I have a master dimension as "Master Dimension"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The measure for my chart is:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15265016119163146 jive_text_macro" jivemacro_uid="_15265016119163146"&gt;
&lt;P&gt;Count(Product)/Count(TOTAL &amp;lt;[Master Dimension]&amp;gt; Product)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Bad field name: [Master Dimension]&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;But the the chart still renders and saves normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart has two dimensions the first is "&lt;SPAN style="font-size: 13.3333px;"&gt;Master Dimension&lt;/SPAN&gt;" and the second is "Product". For a &lt;EM&gt;Customer&lt;/EM&gt; each &lt;EM&gt;Product&lt;/EM&gt; should have it's own bar in the chart. The bar represents the percentage of time that product appears for that customer. For &lt;EM&gt;Astrida&lt;/EM&gt; &lt;EM&gt;AA&lt;/EM&gt; appears twice and she has 3 product rows so that's 66.7%. The graph displays as expected but I can't explain why. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've attached a simple app. That demonstrates the issue. Here is the load script if needed.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15265012570295011" jivemacro_uid="_15265012570295011" modifiedtitle="true"&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;ProductData:&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;LOAD * inline [&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Customer|Product|UnitSales|UnitPrice&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|AA|4|16&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|AA|10|15&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|BB|9|9&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|BB|5|10&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|CC|2|20&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|DD||25&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Canutility|AA|8|15&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Canutility|CC||19&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;] (delimiter is '|');&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-22T15:42:54Z</dc:date>
    <item>
      <title>Count(TOTAL &lt;[Master Dimension]&gt; Product)</title>
      <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45839#M3077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If possible can someone point me at documentation explaining why this works even though there is an error in the expression editor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that I have a master dimension as "Master Dimension"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The measure for my chart is:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15265016119163146 jive_text_macro" jivemacro_uid="_15265016119163146"&gt;
&lt;P&gt;Count(Product)/Count(TOTAL &amp;lt;[Master Dimension]&amp;gt; Product)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Bad field name: [Master Dimension]&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;But the the chart still renders and saves normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart has two dimensions the first is "&lt;SPAN style="font-size: 13.3333px;"&gt;Master Dimension&lt;/SPAN&gt;" and the second is "Product". For a &lt;EM&gt;Customer&lt;/EM&gt; each &lt;EM&gt;Product&lt;/EM&gt; should have it's own bar in the chart. The bar represents the percentage of time that product appears for that customer. For &lt;EM&gt;Astrida&lt;/EM&gt; &lt;EM&gt;AA&lt;/EM&gt; appears twice and she has 3 product rows so that's 66.7%. The graph displays as expected but I can't explain why. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've attached a simple app. That demonstrates the issue. Here is the load script if needed.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15265012570295011" jivemacro_uid="_15265012570295011" modifiedtitle="true"&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;ProductData:&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;LOAD * inline [&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Customer|Product|UnitSales|UnitPrice&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|AA|4|16&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|AA|10|15&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Astrida|BB|9|9&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|BB|5|10&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|CC|2|20&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Betacab|DD||25&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Canutility|AA|8|15&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Canutility|CC||19&lt;/P&gt;
&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;] (delimiter is '|');&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45839#M3077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count(TOTAL &lt;[Master Dimension]&gt; Product)</title>
      <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45840#M3078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax editor doesn't always understand all the syntax... but the fact that it works is something I would have not expected. It am not sure if this will even work if Master Dimension was an if statement instead of just &lt;STRONG&gt;=LTrim(Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 11:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45840#M3078</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-17T11:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count(TOTAL &lt;[Master Dimension]&gt; Product)</title>
      <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45841#M3079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hesitant to use this in a production app. I'm wondering if you see a better way to achieve the same result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 14:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45841#M3079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T14:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count(TOTAL &lt;[Master Dimension]&gt; Product)</title>
      <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45842#M3080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Product)/Count(TOTAL &amp;lt;Customer&amp;gt; Product)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Product)/Aggr(NODISTINCT Count(Product), Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 14:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45842#M3080</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-17T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count(TOTAL &lt;[Master Dimension]&gt; Product)</title>
      <link>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45843#M3081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;TL;DR&lt;/STRONG&gt; Use the load script to Change the name of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah, figured it out. We use the master dimension so that we could have clean names for displayed above the selected filters and the use of &lt;EM&gt;LTrim&lt;/EM&gt; was part of that. When the master dimensions was just the field it would not use the label but when the dimension was a formula it used the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the load script we can load the field as "Master Dimension" and it will have a nice label when when to filter the selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 20:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-TOTAL-lt-Master-Dimension-gt-Product/m-p/45843#M3081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T20:38:55Z</dc:date>
    </item>
  </channel>
</rss>

