<?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 How to use an if statement conditional on the value of a cyclic-group? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533201#M1135082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We created a cyclic group ("Time Cyc") that cycles through time variables - e.g. year-week, year-month, year-qtr.&lt;/P&gt;&lt;P&gt;I'd like to use if functions based on the currently selected value of the cyclic group.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;if([Time Cyc]={'year-qtr'}, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if appears I can't use the cyclic group as I would use any other variable........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can it be done? how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Nov 2013 07:49:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-17T07:49:52Z</dc:date>
    <item>
      <title>How to use an if statement conditional on the value of a cyclic-group?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533201#M1135082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We created a cyclic group ("Time Cyc") that cycles through time variables - e.g. year-week, year-month, year-qtr.&lt;/P&gt;&lt;P&gt;I'd like to use if functions based on the currently selected value of the cyclic group.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;if([Time Cyc]={'year-qtr'}, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if appears I can't use the cyclic group as I would use any other variable........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can it be done? how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 07:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533201#M1135082</guid>
      <dc:creator />
      <dc:date>2013-11-17T07:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an if statement conditional on the value of a cyclic-group?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533202#M1135084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Al,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the selected field within a cyclic/drilldown group by using the GetCurrentField function:&lt;/P&gt;&lt;P&gt;if(Match(GetCurrentField([Time Cyc]), 'year-qtr'), 1, 0).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 08:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533202#M1135084</guid>
      <dc:creator />
      <dc:date>2013-11-17T08:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an if statement conditional on the value of a cyclic-group?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533203#M1135085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers! It works!&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 08:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-an-if-statement-conditional-on-the-value-of-a-cyclic/m-p/533203#M1135085</guid>
      <dc:creator />
      <dc:date>2013-11-17T08:31:42Z</dc:date>
    </item>
  </channel>
</rss>

