<?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: Issue: Set analysis – Percentage – Total - Bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-Set-analysis-Percentage-Total-Bar-chart/m-p/1593540#M43645</link>
    <description>&lt;P&gt;It would be easier to help if we can see a sample qvf... I know you said it can take time, but I think it will be worth your time and effort.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 11:42:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-06-19T11:42:35Z</dc:date>
    <item>
      <title>Issue: Set analysis – Percentage – Total - Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-Set-analysis-Percentage-Total-Bar-chart/m-p/1593469#M43641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to calculate a percentage (using total) as a measure in a bar chart (see screenshots) taking into account the selection I make with Month Year only reflect start dates.&lt;/P&gt;&lt;P&gt;Month Year consists of two type of dates: start dates and due dates (values in field %DateOrigin). We wish that for certain metrics we can filter on start dates or due dates with the same filter Month Year. This is the expression used:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} [ID]) / Count({&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} total &amp;lt;Objective&amp;gt; [ID])&lt;/P&gt;&lt;P&gt;It works perfect, but for certain selections (combinations of Month Year and (Region or other field)) the denominator (Count({&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} total &amp;lt;Objective&amp;gt; [ID]) ) gives the same amounts as in the counter (Count({&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} [ID])). Which is wrong considering the data from the selection.&lt;/P&gt;&lt;P&gt;Only when I additionally select the value Start Date in the filter %DateOrigin, the correct percentage is given. I do not understand why I need to make an extra selection since this is already available in the expression (in both the denominator and counter {&amp;lt;%DateOrigin= {'Start Date'}&amp;gt;}) How can I solve this? I currently added the filter %DateOrigin as a workaround, but this is not ideal for business.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have also tried to use the 1 in set analysis, but then the percentages are not what I want. &amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({1&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} [ID]) / Count({1&amp;lt;%DateOrigin=&amp;nbsp; {'Start Date'}&amp;gt;} total &amp;lt;Objective&amp;gt; [ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could supply a dataset and the qvf but it would take time since I would need to randomize my data first and also change some fieldnames.&lt;/P&gt;&lt;P&gt;I am using Qlik Sense Feb 2019&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-Set-analysis-Percentage-Total-Bar-chart/m-p/1593469#M43641</guid>
      <dc:creator>katrien_vanguch</dc:creator>
      <dc:date>2024-11-16T05:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue: Set analysis – Percentage – Total - Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-Set-analysis-Percentage-Total-Bar-chart/m-p/1593540#M43645</link>
      <description>&lt;P&gt;It would be easier to help if we can see a sample qvf... I know you said it can take time, but I think it will be worth your time and effort.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 11:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-Set-analysis-Percentage-Total-Bar-chart/m-p/1593540#M43645</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-19T11:42:35Z</dc:date>
    </item>
  </channel>
</rss>

