<?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: 100% Bar chart with 2 dimensions and one measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20105#M1345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have edited the Auto calendar to derive a YearAgo field for Total year &amp;amp; last Year&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;gt;=1 and 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;lt;= 12, 'Total Year',&lt;/P&gt;&lt;P&gt;if(12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;gt;=13 and 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;lt;= 24,'Last Year',null())) as YearAgo,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 22:41:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-26T22:41:02Z</dc:date>
    <item>
      <title>100% Bar chart with 2 dimensions and one measure</title>
      <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20101#M1341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is it possible to create a 100% stacked bar with 2 dimensions and 1 measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with some sales value for 2 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required: Create alternate measure to fit in fig 1 to show 100% split between products (as shown in Fig 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am getting is Fig 2 split between years as alternate measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create 4 measures to get total to 100% but its not ideal as I will be duplicating 10 graphs for # and %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales report.JPG" class="jive-image image-1" src="/legacyfs/online/200822_Sales report.JPG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fig 1 measure: Sum(Sales)&lt;/P&gt;&lt;P&gt;Fig 2:&amp;nbsp; Sum(Sales) /sum(total &amp;lt;Year&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;Fig 3: &lt;/P&gt;&lt;P&gt;Currently creating 4 measure for each product:&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt;Product={'P1'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;/&lt;SPAN style="font-size: 10pt;"&gt;sum({&amp;lt;Product= {'&lt;SPAN style="font-size: 13.3333px;"&gt;P1&lt;/SPAN&gt;','&lt;SPAN style="font-size: 13.3333px;"&gt;P&lt;/SPAN&gt;2','&lt;SPAN style="font-size: 13.3333px;"&gt;P&lt;/SPAN&gt;3','&lt;SPAN style="font-size: 13.3333px;"&gt;P&lt;/SPAN&gt;4'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,'#,##0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any way I can create a one measure to get these split for products to be 100% with 2 dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 23:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20101#M1341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T23:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Bar chart with 2 dimensions and one measure</title>
      <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20102#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your first dimension? Is it Year or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 00:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20102#M1342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T00:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Bar chart with 2 dimensions and one measure</title>
      <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20103#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Dimension: Year&lt;/P&gt;&lt;P&gt;Second Dimension: Product&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 00:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20103#M1343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T00:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Bar chart with 2 dimensions and one measure</title>
      <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20104#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is year a calculated or derived field by any chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20104#M1344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Bar chart with 2 dimensions and one measure</title>
      <link>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20105#M1345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have edited the Auto calendar to derive a YearAgo field for Total year &amp;amp; last Year&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;gt;=1 and 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;lt;= 12, 'Total Year',&lt;/P&gt;&lt;P&gt;if(12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;gt;=13 and 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) &amp;lt;= 24,'Last Year',null())) as YearAgo,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 22:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Bar-chart-with-2-dimensions-and-one-measure/m-p/20105#M1345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T22:41:02Z</dc:date>
    </item>
  </channel>
</rss>

