<?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 Macro for cyclic group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-cyclic-group/m-p/363833#M135332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written this macro for a Cyclic group(GeoID) with Nation, REGION_ID, DISTRICT_ID and TERRITORY as the fields.&lt;/P&gt;&lt;P&gt;But it takes me one level down. Say if i am at Nation it will take me to REGION_ID and then DISTRICT_ID and then TERRITORY but i want to do it the other way. like from TERRITORY--&amp;gt;DISTRICT_ID--&amp;gt;REGION_ID--&amp;gt;Nation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the macro for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My macro is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub cyclic&lt;/P&gt;&lt;P&gt;set gp = ActiveDocument.GetGroup("GeoID")&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "DISTRICT_ID"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "REGION_ID"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "Nation"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 04:54:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-22T04:54:45Z</dc:date>
    <item>
      <title>Macro for cyclic group</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-cyclic-group/m-p/363833#M135332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written this macro for a Cyclic group(GeoID) with Nation, REGION_ID, DISTRICT_ID and TERRITORY as the fields.&lt;/P&gt;&lt;P&gt;But it takes me one level down. Say if i am at Nation it will take me to REGION_ID and then DISTRICT_ID and then TERRITORY but i want to do it the other way. like from TERRITORY--&amp;gt;DISTRICT_ID--&amp;gt;REGION_ID--&amp;gt;Nation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the macro for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My macro is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub cyclic&lt;/P&gt;&lt;P&gt;set gp = ActiveDocument.GetGroup("GeoID")&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "DISTRICT_ID"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "REGION_ID"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;do while gp.GetActiveField.Name = "Nation"&lt;/P&gt;&lt;P&gt;gp.cycle 1&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 04:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-cyclic-group/m-p/363833#M135332</guid>
      <dc:creator />
      <dc:date>2012-03-22T04:54:45Z</dc:date>
    </item>
  </channel>
</rss>

