<?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: Using Set Analysis create bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980775#M80939</link>
    <description>&lt;P&gt;There are two ways you can get this done&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;&lt;STRONG&gt;1)&amp;nbsp; 1 Dimension 2 Measures&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;:&amp;nbsp; YearMonth field (eg values '2022-Jan','2022-Feb')&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 1: Current Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;$(=Date(Yearstart(Max(Datefield)),'YYYY-MM-DD'))&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=$(=Date(Max(Datefield),'YYYY-MM-DD'))"}&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 2: Previous Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;$(=Date(Yearstart(Max(Datefield),-1),'YYYY-MM-DD'))&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=$(=Date(Addyears(Max(Datefield),-1),'YYYY-MM-DD'))"}&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;2) 2 Dimensions&amp;nbsp; 1 Measure&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;&lt;FONT color="#000000"&gt;Create a new field say&lt;/FONT&gt; "&lt;EM&gt;MonthNum"&lt;/EM&gt; &lt;FONT color="#000000"&gt;that has numeric values for Jan,Feb,Mar&amp;nbsp; as 1,2,3..12&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;Then in chart use below&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;:&amp;nbsp; Year&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension2:&lt;/STRONG&gt; Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 1:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Year={"$(=Max(Year)),$(=Max(Year)-1)"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;,&lt;STRONG&gt;MonthNum={"&amp;lt;=$(Max(MonthNum))"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;,Month=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 08:29:08 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-09-14T08:29:08Z</dc:date>
    <item>
      <title>Using Set Analysis create bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980405#M80908</link>
      <description>&lt;P&gt;We need to create a bar chart for years and months . Condition if we select 2012 year data and Aug month then bar chart reflect 2012 year data and previous year 2011 but bar should be from Jan to Aug for both year. Use only set Analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 16:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980405#M80908</guid>
      <dc:creator>bhoomika_10</dc:creator>
      <dc:date>2022-09-13T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis create bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980569#M80919</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;I take it that you want to compare the current and the same period last year's data based on user selection. dimensions.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;In&amp;nbsp; such a case, perhaps these&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Current Period&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;SUM({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max([Date Field])), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max([Date Field]), 'DD/MM/YYYY'))"}&amp;gt;}Yourmeasure)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Same period Last Yea&lt;/STRONG&gt;r&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;SUM({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Max([Date Field]), -1))&amp;lt;=$(=AddYears(Max([Date Field]), -1))"}&amp;gt;}Yourmeasure)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980569#M80919</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-13T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis create bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980685#M80928</link>
      <description>&lt;P&gt;Hi Peter, Yes i need to create comparison chart. but how to use both set analysis in one measure.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 04:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980685#M80928</guid>
      <dc:creator>bhoomika_10</dc:creator>
      <dc:date>2022-09-14T04:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis create bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980775#M80939</link>
      <description>&lt;P&gt;There are two ways you can get this done&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;&lt;STRONG&gt;1)&amp;nbsp; 1 Dimension 2 Measures&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;:&amp;nbsp; YearMonth field (eg values '2022-Jan','2022-Feb')&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 1: Current Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;$(=Date(Yearstart(Max(Datefield)),'YYYY-MM-DD'))&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=$(=Date(Max(Datefield),'YYYY-MM-DD'))"}&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 2: Previous Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Datefield={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;$(=Date(Yearstart(Max(Datefield),-1),'YYYY-MM-DD'))&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=$(=Date(Addyears(Max(Datefield),-1),'YYYY-MM-DD'))"}&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;2) 2 Dimensions&amp;nbsp; 1 Measure&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;&lt;FONT color="#000000"&gt;Create a new field say&lt;/FONT&gt; "&lt;EM&gt;MonthNum"&lt;/EM&gt; &lt;FONT color="#000000"&gt;that has numeric values for Jan,Feb,Mar&amp;nbsp; as 1,2,3..12&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#808000"&gt;Then in chart use below&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;:&amp;nbsp; Year&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension2:&lt;/STRONG&gt; Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure 1:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;Year={"$(=Max(Year)),$(=Max(Year)-1)"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;,&lt;STRONG&gt;MonthNum={"&amp;lt;=$(Max(MonthNum))"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;,Month=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;}SomeMeasure)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-create-bar-chart/m-p/1980775#M80939</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-09-14T08:29:08Z</dc:date>
    </item>
  </channel>
</rss>

