<?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: Date quarter and year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1555303#M744897</link>
    <description>&lt;P&gt;Thanks for Reply.&lt;/P&gt;&lt;P&gt;I didnt understood why if statement is used and where _Dummyquarter came from.&lt;/P&gt;&lt;P&gt;Can you please explain i detail.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 10:54:41 GMT</pubDate>
    <dc:creator>anisha_nan</dc:creator>
    <dc:date>2019-03-12T10:54:41Z</dc:date>
    <item>
      <title>Date quarter and year</title>
      <link>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1554686#M744895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two excel sheet in which i have a data of dates as :&lt;/P&gt;&lt;P&gt;For Eg: Excel 1 :&lt;/P&gt;&lt;P&gt;Code,[q1 2016], [q2 2016],[q3 2016],[q4 2016],2017&lt;/P&gt;&lt;P&gt;1000001,110,210,123,345,456&lt;/P&gt;&lt;P&gt;For Eg: Excel 2 :&lt;/P&gt;&lt;P&gt;ID, [q1 2017], [q2 2017],[q3 2017],[q4 2017],2018&lt;/P&gt;&lt;P&gt;1111112,110,210,123,345,456&lt;/P&gt;&lt;P&gt;Above has the two excel sheet in which we have as quarter wise data and in some case we have only year wise data no quarter.&lt;/P&gt;&lt;P&gt;Now we have to capture both the scenario in qlik, it should pick the data where it has quarter wise data as well as if in the excel there is no quarter wise data for that particular year and has only year wise data then it should pick that particular year data value from it.&lt;/P&gt;&lt;P&gt;can anybody help how to handle both the scenario in qlik.&lt;/P&gt;&lt;P&gt;Attached word doc for more detail.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1554686#M744895</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2024-11-16T04:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date quarter and year</title>
      <link>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1554762#M744896</link>
      <description>&lt;P&gt;Try this code.&lt;/P&gt;&lt;PRE&gt;DATA:
CrossTable  (DummyPeriod, Value)
LOAD * INLINE [
Code,q1 2016, q2 2016,q3 2016,q4 2016,2017
1000001,110,210,123,345,456];

CrossTable (DummyPeriod, Value)
LOAD * INLINE [
Code, q1 2017, q2 2017,q3 2017,q4 2017,2018
1111112,110,210,123,345,456
];

FinalData:
LOAD  
	Code,
	Year,
	if(_DummyQuarter&amp;gt;0,'Q'&amp;amp;_DummyQuarter) as Quarter,
	Value;
LOAD 
	*, 
	subfield(DummyPeriod, ' ' , -1) as Year,
	match(subfield(DummyPeriod, ' ', 1),'q1','q2', 'q3', 'q4') as _DummyQuarter 
Resident DATA;
DROP TABLE DATA;&lt;/PRE&gt;&lt;P&gt;It will generate this table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 243px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7691i8C3559CAF2C0A36A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 10:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1554762#M744896</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-11T10:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date quarter and year</title>
      <link>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1555303#M744897</link>
      <description>&lt;P&gt;Thanks for Reply.&lt;/P&gt;&lt;P&gt;I didnt understood why if statement is used and where _Dummyquarter came from.&lt;/P&gt;&lt;P&gt;Can you please explain i detail.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1555303#M744897</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-03-12T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date quarter and year</title>
      <link>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1555318#M744898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also please find the attached revised logic which is the correct requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-quarter-and-year/m-p/1555318#M744898</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-03-12T11:18:37Z</dc:date>
    </item>
  </channel>
</rss>

