<?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 to create drill-down groups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/macro-to-create-drill-down-groups/m-p/797970#M471909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 or 4 variables for each provider specialty (~50) that I would like to use in a drill down group (2 drill down groups per specialty). For example, a simplified version:&lt;/P&gt;&lt;P&gt;variables for cardiology, endocrinology, and neurology:&lt;/P&gt;&lt;P&gt;specialty: cardiology&lt;/P&gt;&lt;P&gt;var_a_car_tax_desc&lt;/P&gt;&lt;P&gt;var_a_car_npi_desc&lt;/P&gt;&lt;P&gt;var_b_car_dept_desc&lt;/P&gt;&lt;P&gt;var_b_car_prov_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specialty: endocrinology&lt;/P&gt;&lt;P&gt;var_a_end_tax_desc&lt;/P&gt;&lt;P&gt;var_a_end_npi_desc&lt;/P&gt;&lt;P&gt;var_b_end_dept_desc&lt;/P&gt;&lt;P&gt;var_b_end_prov_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specialty:neurology&lt;/P&gt;&lt;P&gt;var_a_neu_tax_desc&lt;/P&gt;&lt;P&gt;var_a_neu_npi_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create the drill-down groups: Cardiology - A, Cardiology - B, Endocrinology - A, Endocrinology - B, and Neurology - A (+ for all other specialties not in example). As you can see by the example, most specialties have both the 2 var_a's and 2 var_b's available but some specialties may only have 2 var_a's available or 2 var_b's available. I have a lookup table that maps the specialty abbreviation in the variable names (car, end, neu) to the specialty. I would like to use this, concatenated with - A or - B as the drill down group name. The drill down groups themselves will look like this:&lt;/P&gt;&lt;P&gt;- A&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_tax_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_tax_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_npi_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_npi_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- B&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_b_car_dept_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_dept_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_b_car_prov_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_prov_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to use a macro and loop to create the - A and - B groups for all specialties (variable naming convention is the same). How should I go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 18:00:32 GMT</pubDate>
    <dc:creator>kmstephenson</dc:creator>
    <dc:date>2015-02-12T18:00:32Z</dc:date>
    <item>
      <title>macro to create drill-down groups</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-create-drill-down-groups/m-p/797970#M471909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 or 4 variables for each provider specialty (~50) that I would like to use in a drill down group (2 drill down groups per specialty). For example, a simplified version:&lt;/P&gt;&lt;P&gt;variables for cardiology, endocrinology, and neurology:&lt;/P&gt;&lt;P&gt;specialty: cardiology&lt;/P&gt;&lt;P&gt;var_a_car_tax_desc&lt;/P&gt;&lt;P&gt;var_a_car_npi_desc&lt;/P&gt;&lt;P&gt;var_b_car_dept_desc&lt;/P&gt;&lt;P&gt;var_b_car_prov_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specialty: endocrinology&lt;/P&gt;&lt;P&gt;var_a_end_tax_desc&lt;/P&gt;&lt;P&gt;var_a_end_npi_desc&lt;/P&gt;&lt;P&gt;var_b_end_dept_desc&lt;/P&gt;&lt;P&gt;var_b_end_prov_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specialty:neurology&lt;/P&gt;&lt;P&gt;var_a_neu_tax_desc&lt;/P&gt;&lt;P&gt;var_a_neu_npi_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create the drill-down groups: Cardiology - A, Cardiology - B, Endocrinology - A, Endocrinology - B, and Neurology - A (+ for all other specialties not in example). As you can see by the example, most specialties have both the 2 var_a's and 2 var_b's available but some specialties may only have 2 var_a's available or 2 var_b's available. I have a lookup table that maps the specialty abbreviation in the variable names (car, end, neu) to the specialty. I would like to use this, concatenated with - A or - B as the drill down group name. The drill down groups themselves will look like this:&lt;/P&gt;&lt;P&gt;- A&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_tax_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_tax_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_npi_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_npi_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- B&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_b_car_dept_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_dept_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_b_car_prov_desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;var_a_car_prov_desc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to use a macro and loop to create the - A and - B groups for all specialties (variable naming convention is the same). How should I go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-create-drill-down-groups/m-p/797970#M471909</guid>
      <dc:creator>kmstephenson</dc:creator>
      <dc:date>2015-02-12T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: macro to create drill-down groups</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-create-drill-down-groups/m-p/797971#M471910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, this is a very much open question... Generally speaking, you need to find a copy&amp;nbsp; of the APIGuide.QVW, and search for the APIs that can be used for generating groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you should program your logic in the VBScript macro, retrieve all the necessary variables and use the values in the process of generating groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confident that it can be done, but unless someone has done it already, it would be much more work than most experts would be willing to invest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't done much with Macro development, I'd highly recommend engaging a developer who is experienced in developing QlikView Macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;www.masterssummit.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 19:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-create-drill-down-groups/m-p/797971#M471910</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-12T19:01:19Z</dc:date>
    </item>
  </channel>
</rss>

