<?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: comparison of two months data using set analysis in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954646#M209704</link>
    <description>&lt;P&gt;Thank you . Till there it worked. Now i want to have the requirement as below&lt;/P&gt;
&lt;P&gt;if (currentmonth) &amp;gt; (previousmonth) then the arrow should be up in the chart&lt;/P&gt;
&lt;P&gt;if (currentmonth) &amp;lt; (previousmonth) then the arrow should be down in the chart&lt;/P&gt;
&lt;P&gt;how can i given in one expression and show up and down.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am using kpi designer, where in one layer i have used up arrow icon and i need to provide the above statement in show/hide column. please advise on the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 13:39:44 GMT</pubDate>
    <dc:creator>andrea0901</dc:creator>
    <dc:date>2022-07-12T13:39:44Z</dc:date>
    <item>
      <title>comparison of two months data using set analysis</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954574#M209682</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a requirement of comparing the last months data and current months data and updating the arrow upside and down.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the last month data is greater than current months data, the arrow should be down in the KPI chart.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it has to compare for every month by taking the last month's data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a report date in my dashboard. Please assist me in doing this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 11:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954574#M209682</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2022-07-12T11:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: comparison of two months data using set analysis</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954579#M209683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/60450"&gt;@andrea0901&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest way is to use a Master Calander so you can create flags.&lt;/P&gt;
&lt;P&gt;If you want to do it in the front end, you can try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Static:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Previous Month:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt; Date={ "&amp;gt;=$(=AddMonths(MonthStart(Today()),-1))&amp;lt;= $(=AddMonths(MonthEnd(Today()),-1))" } &amp;gt;} Fieldname)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Current Month&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt; Date={ "&amp;gt;=$(=MonthStart(Today()))&amp;lt;= $(=MonthEnd(Today()))" } &amp;gt;} Fieldname)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Dynamic:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Previous month:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt; Date={ "&amp;gt;=$(=AddMonths(MonthStart(Max(Date)),-1))&amp;lt;= $(=AddMonths(MonthEnd(Max(Date)),-1))" } &amp;gt;} Fieldname)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Current month&lt;/STRONG&gt;:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt; Date={ "&amp;gt;=$(=MonthStart(Max(Date)))&amp;lt;= $(=MonthEnd(Max(Date)))" } &amp;gt;} Fieldname)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* Change &lt;EM&gt;"Date"&amp;nbsp;&lt;/EM&gt; to your date column name.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954579#M209683</guid>
      <dc:creator>ggijben</dc:creator>
      <dc:date>2022-07-12T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: comparison of two months data using set analysis</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954580#M209684</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;This depends exactly what you are after, But if i understand correctly then the way i do this is with a mixture of scripting and front end.&lt;/P&gt;
&lt;P&gt;Firstly i flag all the data that is in the Current month i.e.&lt;/P&gt;
&lt;P&gt;IF(MONTH(TempDate)= MONTH(TODAY(1)) AND YEAR(TempDate)=YEAR(TODAY(1)),1) AS F_CURRENT_MONTH,&lt;/P&gt;
&lt;P&gt;Then all the data in the prior month&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF(MONTH(TempDate)= MONTH(ADDMONTHS(TODAY(1),-1)) AND YEAR(TempDate)=YEAR(ADDMONTHS(TODAY(1),-1)),1) AS F_PRIOR_MONTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I can use these in my set analysis for current and prior months.&lt;/P&gt;
&lt;P&gt;Like SUM(&amp;lt;{F_CURRENT_MONTH={1}}&amp;gt;Sales)&lt;/P&gt;
&lt;P&gt;You then create an if statement around the two for your up and down arrows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954580#M209684</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-07-12T12:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: comparison of two months data using set analysis</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954646#M209704</link>
      <description>&lt;P&gt;Thank you . Till there it worked. Now i want to have the requirement as below&lt;/P&gt;
&lt;P&gt;if (currentmonth) &amp;gt; (previousmonth) then the arrow should be up in the chart&lt;/P&gt;
&lt;P&gt;if (currentmonth) &amp;lt; (previousmonth) then the arrow should be down in the chart&lt;/P&gt;
&lt;P&gt;how can i given in one expression and show up and down.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am using kpi designer, where in one layer i have used up arrow icon and i need to provide the above statement in show/hide column. please advise on the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/comparison-of-two-months-data-using-set-analysis/m-p/1954646#M209704</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2022-07-12T13:39:44Z</dc:date>
    </item>
  </channel>
</rss>

