<?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: Calculating percentage in bar chart by TOTAL for each dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722756#M54998</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you try it with a set expression instead of IF ?&lt;/P&gt;&lt;P&gt;It would be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;}&amp;nbsp; DURATION_HOURS)&lt;/P&gt;&lt;P&gt;/&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(TOTAL&amp;lt;[DATE_PAY_SCHED.autoCalendar.Date]&amp;gt;&amp;nbsp;&amp;nbsp;{&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;}&amp;nbsp; DURATION_HOURS )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 22:54:10 GMT</pubDate>
    <dc:creator>Gui_Approbato</dc:creator>
    <dc:date>2020-06-26T22:54:10Z</dc:date>
    <item>
      <title>Calculating percentage in bar chart by TOTAL for each dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722754#M54997</link>
      <description>&lt;P&gt;Qlik Sense experts,&lt;/P&gt;&lt;P&gt;Need your help to resolve this issue. I am using Qlik Sense February 2020&lt;/P&gt;&lt;P&gt;I have an expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(if(TIME_OFF_BUCKET='WORK', DURATION_HOURS))&lt;/P&gt;&lt;P&gt;/&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(TOTAL&amp;lt;[DATE_PAY_SCHED.autoCalendar.Date]&amp;gt; IF(TIME_OFF_BUCKET='WORK',DURATION_HOURS))&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this expression, I see the view as given in below screen1.&lt;/P&gt;&lt;P&gt;But, I would like to see the percentage as screen2.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 22:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722754#M54997</guid>
      <dc:creator>Nags</dc:creator>
      <dc:date>2020-06-26T22:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage in bar chart by TOTAL for each dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722756#M54998</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you try it with a set expression instead of IF ?&lt;/P&gt;&lt;P&gt;It would be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;}&amp;nbsp; DURATION_HOURS)&lt;/P&gt;&lt;P&gt;/&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(TOTAL&amp;lt;[DATE_PAY_SCHED.autoCalendar.Date]&amp;gt;&amp;nbsp;&amp;nbsp;{&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;}&amp;nbsp; DURATION_HOURS )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 22:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722756#M54998</guid>
      <dc:creator>Gui_Approbato</dc:creator>
      <dc:date>2020-06-26T22:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage in bar chart by TOTAL for each dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722765#M54999</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;Gui_Approbato!&lt;/P&gt;&lt;P&gt;I tried with the set expression earlier (with the same expression as your have mentioned), the bar chart results are same as given in screen1.&lt;/P&gt;&lt;P&gt;When I select one specific Schedule Date (DATE_PAY_SCHED), then the % shows correct in the bar chart (as shown in screen2). I assume the TOTAL &amp;lt;DATE_PAY_SCHED&amp;gt; is not grouping the work_hours properly. It is sum up all the days, which is the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 00:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722765#M54999</guid>
      <dc:creator>Nags</dc:creator>
      <dc:date>2020-06-27T00:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage in bar chart by TOTAL for each dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722785#M55001</link>
      <description>&lt;P&gt;Thank you all for looking for resolution. After some research, I got the solution. Both solutions are working fine:&lt;/P&gt;&lt;P&gt;Solution - 1:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;} DURATION_HOURS)&lt;BR /&gt;/&lt;BR /&gt;aggr(nodistinct sum( {&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;} DURATION_HOURS ), [DATE_PAY_SCHED.autoCalendar.Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution - 2:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;} DURATION_HOURS)&lt;BR /&gt;/&lt;BR /&gt;aggr(sum(TOTAL&amp;lt;[DATE_PAY_SCHED.autoCalendar.Date]&amp;gt; {&amp;lt;TIME_OFF_BUCKET={'WORK'}&amp;gt;} DURATION_HOURS ), [DATE_PAY_SCHED.autoCalendar.Date], RVP)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 04:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-in-bar-chart-by-TOTAL-for-each-dimension/m-p/1722785#M55001</guid>
      <dc:creator>Nags</dc:creator>
      <dc:date>2020-06-27T04:02:47Z</dc:date>
    </item>
  </channel>
</rss>

