<?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 Quarter sorting and filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559353#M441141</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;PFA the screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I need to order the quarter like Q1-2019, Q1-2018,Q2-2018,Q2-2017,Q3-2018,Q3-2017,Q4-2018,Q4-2017. Please help me to sort Quarter field like mentioned.&lt;/P&gt;&lt;P&gt;2. Now Only Q1 is available for 2019, so I need to show Q1 comparison for 2019 vs 2018, but for other quarters I need to show comparison between 2018 vs 2017 quarters.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:12:28 GMT</pubDate>
    <dc:creator>amruta_j</dc:creator>
    <dc:date>2024-11-16T21:12:28Z</dc:date>
    <item>
      <title>Quarter sorting and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559353#M441141</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;PFA the screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I need to order the quarter like Q1-2019, Q1-2018,Q2-2018,Q2-2017,Q3-2018,Q3-2017,Q4-2018,Q4-2017. Please help me to sort Quarter field like mentioned.&lt;/P&gt;&lt;P&gt;2. Now Only Q1 is available for 2019, so I need to show Q1 comparison for 2019 vs 2018, but for other quarters I need to show comparison between 2018 vs 2017 quarters.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559353#M441141</guid>
      <dc:creator>amruta_j</dc:creator>
      <dc:date>2024-11-16T21:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter sorting and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559359#M441142</link>
      <description>&lt;P&gt;You can do it via Expression in Sort Tab&lt;/P&gt;&lt;P&gt;Expression &lt;SPAN&gt;&lt;STRONG&gt;=Match(Quarter_Field_Name,&amp;nbsp;'Q1-2019',' Q1-2018','Q2-2018','Q2-2017','Q3-2018','Q3-2017','Q4-2018','Q4&lt;/STRONG&gt;-2017'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Not you can also create an Inline Table with 2 columns&amp;nbsp; Quarter_Field_Name and Sortweight and sort based on&amp;nbsp;Sortweight&amp;nbsp; Field by passing the same as expression in the Sort Tab&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 06:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559359#M441142</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-03-21T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter sorting and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559371#M441144</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For your first issue you can calculate another field, at the same time that you calculate the field Quarter-Year, with this logic: 20191, 20184, 20183.... and then you can short by this field.&lt;BR /&gt;&lt;BR /&gt;For your second issue, Can you share the expresion that you use?&lt;BR /&gt;&lt;BR /&gt;Dan.</description>
      <pubDate>Thu, 21 Mar 2019 07:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559371#M441144</guid>
      <dc:creator>daanciorea</dc:creator>
      <dc:date>2019-03-21T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter sorting and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559400#M441147</link>
      <description>&lt;P&gt;For first point, I'm calculating Quarter Year in model like&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; ceil(month / 3)&amp;amp;'-'&amp;amp;year AS Quarter, Not sure how to sort it without hardcoding the year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For second point, my expression is just sum(Total_Leads), but I'm creating cyclic expression for QuarterYear and MonthYear like below:&lt;/P&gt;&lt;P&gt;QuarterYear (sorted State and Text)&lt;/P&gt;&lt;P&gt;MonthYear (sorted with Expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;wildmatch(MonthYear,'Jan*','Feb*','Mar*','Apr*','May*','Jun*','Jul*','Aug*','Sep*','Oct*','Nov*','Dec*') )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm guessing I need to use set expression for 2nd point, but not sure how.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 08:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559400#M441147</guid>
      <dc:creator>amruta_j</dc:creator>
      <dc:date>2019-03-21T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter sorting and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559405#M441148</link>
      <description>For the first point , add the folow field,&lt;BR /&gt;year &amp;amp; ceil(month / 3) AS QuarterShort.&lt;BR /&gt;&lt;BR /&gt;For your second issue, test to use :&lt;BR /&gt;1. Create new field ---&amp;gt; ceil(month / 3) AS QuarterTotal&lt;BR /&gt;2. Create a new variable: vMaxQuarter --&amp;gt; max(QuarterTotal)&lt;BR /&gt;3. Use this expresion ---&amp;gt; Sum({&amp;lt;QuarterShort = {$(=$(vMaxYear) &amp;amp; $(vMAxQuarter))}&amp;gt;}Total_Leads) / Sum({&amp;lt;QuarterShort = {$(vMaxPreviousYear) &amp;amp; $(vMAxQuarter)}&amp;gt;}Total_Leads)&lt;BR /&gt;&lt;BR /&gt;I hope it's work.&lt;BR /&gt;&lt;BR /&gt;Dan.</description>
      <pubDate>Thu, 21 Mar 2019 08:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-sorting-and-filter/m-p/1559405#M441148</guid>
      <dc:creator>daanciorea</dc:creator>
      <dc:date>2019-03-21T08:50:23Z</dc:date>
    </item>
  </channel>
</rss>

