<?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 100% Stacked Bar Chart Issue With Toggle in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/100-Stacked-Bar-Chart-Issue-With-Toggle/m-p/1594275#M43709</link>
    <description>&lt;P&gt;I am using Qlik Sense and building a Stacked Bar Char showing 100% for every month. I have a Fiscal Month and Calendar Month.&lt;/P&gt;&lt;P&gt;I created a Bar Chart with Month as a Stack and Time Bucket as Bar. It works fine if I use 2 different charts one for Fiscal MOnth and other one for Calendar MOnth both months have their own Time Buckets .(Please see the visual on the right side of the Attachment)&lt;/P&gt;&lt;P&gt;But the requirement was to use a toggle to switch between the 2 months instead of 2 charts. So I used the variable input box setting the fiscal and Calendar Months. Now my Bar chart expressions are ,&lt;/P&gt;&lt;P&gt;Stack&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Fiscal_Month,&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Calendar_Month))&lt;/P&gt;&lt;P&gt;Bar&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Fiscal_Time_Bucket,&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Calendar_Time_Bucket))&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Sum(Total &amp;lt;Fiscal_Month&amp;gt; Sales),&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Sum(Total &amp;lt;Calendar_Monthh&amp;gt; Sales)))&lt;/P&gt;&lt;P&gt;But Now I am not getting a 100% Chart . Please see the image on the left of attachment.&lt;/P&gt;&lt;P&gt;Am I missing something here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 17:00:22 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2019-06-20T17:00:22Z</dc:date>
    <item>
      <title>100% Stacked Bar Chart Issue With Toggle</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-Bar-Chart-Issue-With-Toggle/m-p/1594275#M43709</link>
      <description>&lt;P&gt;I am using Qlik Sense and building a Stacked Bar Char showing 100% for every month. I have a Fiscal Month and Calendar Month.&lt;/P&gt;&lt;P&gt;I created a Bar Chart with Month as a Stack and Time Bucket as Bar. It works fine if I use 2 different charts one for Fiscal MOnth and other one for Calendar MOnth both months have their own Time Buckets .(Please see the visual on the right side of the Attachment)&lt;/P&gt;&lt;P&gt;But the requirement was to use a toggle to switch between the 2 months instead of 2 charts. So I used the variable input box setting the fiscal and Calendar Months. Now my Bar chart expressions are ,&lt;/P&gt;&lt;P&gt;Stack&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Fiscal_Month,&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Calendar_Month))&lt;/P&gt;&lt;P&gt;Bar&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Fiscal_Time_Bucket,&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Calendar_Time_Bucket))&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=If('$(vToggle)'='Fiscal',&lt;BR /&gt;Sum(Total &amp;lt;Fiscal_Month&amp;gt; Sales),&lt;BR /&gt;If('$(vToggle)'='Calendar',&lt;BR /&gt;Sum(Total &amp;lt;Calendar_Monthh&amp;gt; Sales)))&lt;/P&gt;&lt;P&gt;But Now I am not getting a 100% Chart . Please see the image on the left of attachment.&lt;/P&gt;&lt;P&gt;Am I missing something here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 17:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-Bar-Chart-Issue-With-Toggle/m-p/1594275#M43709</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2019-06-20T17:00:22Z</dc:date>
    </item>
  </channel>
</rss>

