<?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: Bar Chart by % Question (Error) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998617#M82706</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Ruben thank you for your contribution, I did what you suggested but when selecting any segment on the control filter periodterm on the dashboard the chart keeps showing the bar from 0% to 100% as screenshot (156).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added also the periodterm both numerator and denominator but didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other idea? I will appreciate it&lt;/P&gt;
&lt;P&gt;This is the measure I have tried&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'},periodterm_t0328vj&amp;gt;} VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'},periodterm_t0328vj&amp;gt;} total &amp;lt;termstartdate_t0328vj.autoCalendar.YearMonth&amp;gt; VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;I interpret this as: When selecting a segment from periodterm control filter, the chart is showing that the total of the segments are 100% for that month, but it should be showing the distribution from the 100% which is 16% eg. as we can see on screenshot (155) for Feb 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 13:37:59 GMT</pubDate>
    <dc:creator>FelipeK16</dc:creator>
    <dc:date>2022-10-31T13:37:59Z</dc:date>
    <item>
      <title>Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998258#M82669</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I am here trying to get some help, the Issue is that when selecting a control filter in this case this filter is a column for a product segments, the Bar chart by % I built, is showing the results as a 100%, I mean, when I select for example a product segment called 'x', instead of showing the real % which should be eg. 15% of the total product segments, it shows 100%, I am using a dimension by Year &amp;amp; Month, I attached some screenshots showing the Issue I referred.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the problems I had for this Chart was to figure it out on how to build the measure for the %, I finally get a solution which was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'}&amp;gt;} VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'}&amp;gt;} total &amp;lt;termstartdate_t0328vj.autoCalendar.YearMonth&amp;gt; VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;This measure was build for the Bar dimension&lt;/P&gt;
&lt;P&gt;=if(Match(periodterm_t0328vj,'1-Month','12-Month') and Match(packageexc_t0328vj,'Assistance','Navigation','Both'),periodterm_t0328vj)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this was for the control filter&lt;/P&gt;
&lt;P&gt;=if(Match(periodterm_t0328vj,'1-Month','12-Month') and Match(packageexc_t0328vj,'Assistance','Navigation','Both'),periodterm_t0328vj)&lt;/P&gt;
&lt;P&gt;The reason I had to include the conditionals over Bars and control filter was because this was the only way I found to finally have the right distribution on % over the year and Month dimension&lt;/P&gt;
&lt;P&gt;The requirement from the client was that He wanted to see this Period Term bars by % distributed from 0% to 100%.&lt;/P&gt;
&lt;P&gt;Please feel free to ask any question.&lt;/P&gt;
&lt;P&gt;Note: Screenshot (155) shows the Data distributed on % for the segments 1-Month and 12-Month from the column periodterm_t0328vj, Screenshot (156) shows the result when selected one the two segments, 1-Month or 12-Month.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 23:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998258#M82669</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-10-28T23:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998289#M82672</link>
      <description>&lt;P&gt;Hi, I'm not sure of what you want at the, it is that when a term period is selcted it keeps the percentage as it were in screenshot 155, so for 2022-feb it keeps the 84%instead of showing 100%?&lt;/P&gt;
&lt;P&gt;You can try adding adding a condition to the divisor so it ignores selections on Term Period, like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;packageexc_t0328vj={'Assistance','Navigation','Both'}&lt;STRONG&gt;,[TermPeriodField]&lt;/STRONG&gt;&amp;gt;} total &amp;lt;termstartdate_t0328vj.autoCalendar.YearMonth&amp;gt; VIN_t0328vj)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Setting a field in set analysis without assigning any value means to ignore selections on that field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 10:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998289#M82672</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-10-29T10:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998617#M82706</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Ruben thank you for your contribution, I did what you suggested but when selecting any segment on the control filter periodterm on the dashboard the chart keeps showing the bar from 0% to 100% as screenshot (156).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added also the periodterm both numerator and denominator but didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other idea? I will appreciate it&lt;/P&gt;
&lt;P&gt;This is the measure I have tried&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'},periodterm_t0328vj&amp;gt;} VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;count(distinct{$&amp;lt;termstartdate_t0328vj = {"&amp;gt;=$(=Date#('2022-01-01','YYYY-MM-DD'))&amp;lt;=$(=Today())"},&lt;BR /&gt;packageexc_t0328vj={'Assistance','Navigation','Both'},periodterm_t0328vj&amp;gt;} total &amp;lt;termstartdate_t0328vj.autoCalendar.YearMonth&amp;gt; VIN_t0328vj)&lt;/P&gt;
&lt;P&gt;I interpret this as: When selecting a segment from periodterm control filter, the chart is showing that the total of the segments are 100% for that month, but it should be showing the distribution from the 100% which is 16% eg. as we can see on screenshot (155) for Feb 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1998617#M82706</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-10-31T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999185#M82758</link>
      <description>&lt;P&gt;Hi, can you upload a sample app with dummy data that represents your problem?&lt;/P&gt;
&lt;P&gt;I tried with this data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD * inline[
value, term,month
3087,1,6
2090,12,6
2398,1,7
1991,12,7
];&lt;/LI-CODE&gt;
&lt;P&gt;And this expression works:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(value)/sum(total &amp;lt;month&amp;gt; {&amp;lt;term&amp;gt;} value)&lt;/LI-CODE&gt;
&lt;P&gt;When no term is selected the bars add up to 100% for each month, when term 1 is selected bars are 60% for june and 55% for july, not 100%&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 17:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999185#M82758</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-01T17:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999277#M82760</link>
      <description>&lt;P&gt;Hey Ruben, first of all thank you very much for your help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found the solution and was by making the denominator a static measure with the use of a regular expression, in this case the (1) like this:&lt;/P&gt;
&lt;P&gt;(count(distinct{1&amp;lt;packageexc_t0328vj,periodterm_t0328vj,[termstartdate.autoCalendar.Year],&lt;BR /&gt;[termstartdate.autoCalendar.Month],isEnrolled_t0328vj={'Yes'},isOnTrial_t0328vj={'No'}&amp;gt;}(VIN_t0328vj)))&lt;/P&gt;
&lt;P&gt;Instead of the $, using the 1, this makes the denominator static, so when filtering by any period term, it doesn't affects the measure and now we can see the bars from 0 to 100% when not selecting anything or when selecting both periods, and when selecting one of the segments we can see the real percentage, not as bars from 0 to 100%, in other words that measure was taking the rate for just the two segments eg. the rate for all subscribers out of 1 segment, that inflates the result because we are rating only one segment, not the general number of segments, by making the denominator static, it is taking the rate from the general rate.&lt;/P&gt;
&lt;P&gt;I have found this article as reference&lt;/P&gt;
&lt;P&gt;&lt;A class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1" title="https://community.qlik.com/t5/App-Development/Measure-affected-only-by-one-filter/td-p/1690951" href="https://community.qlik.com/t5/App-Development/Measure-affected-only-by-one-filter/td-p/1690951" target="_blank" rel="noopener noreferrer" aria-label="Link https://community.qlik.com/t5/App-Development/Measure-affected-only-by-one-filter/td-p/1690951"&gt;https://community.qlik.com/t5/App-Development/Measure-affected-only-by-one-filter/td-p/1690951&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 21:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999277#M82760</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-01T21:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart by % Question (Error)</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999386#M82768</link>
      <description>&lt;P&gt;Hi, ok, just note that 1 will ignore all selections of the app, so also the years and months or any other selection won't work, but if that works for your needs it's ok.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-by-Question-Error/m-p/1999386#M82768</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-02T07:10:08Z</dc:date>
    </item>
  </channel>
</rss>

