<?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: How to test which of the levels of a drill down group is shown? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079943#M359973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GetCurrentField function does work with the expressions you use in the drill down group. But it does not return the label you gave the expressions, but the expressions themselves. Those expression texts aren't very useful, but you can use the length of those expression texts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If ((Dimensionality()=1) and &lt;STRONG&gt;(len(GetCurrentField(Team_Responsible_Amount))=37&lt;/STRONG&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxTeam),rgb(255,180,180)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxResponsible),rgb(255,180,180)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 17:55:02 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-10T17:55:02Z</dc:date>
    <item>
      <title>How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079939#M359969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a drill down group with the name: Team_Responsible_Amount.&lt;/P&gt;&lt;P&gt;It contains two &lt;SPAN style="text-decoration: underline;"&gt;calculated&lt;/SPAN&gt; fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If($(vLanguage)='F', TEAM_F, TEAM_E)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;=If(RESPONSIBLE_FIRST_NAME = RESPONSIBLE_LAST_NAME, RESPONSIBLE_LAST_NAME, RESPONSIBLE_FIRST_NAME &amp;amp; ' ' &amp;amp; RESPONSIBLE_LAST_NAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a pivot table with one of the dimensions Team_Responsible_Amount and the other year_month, the sum of amounts is shown per responsible or per team and per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the team is shown, the background color should be set when the sum of the amounts is &amp;gt; vMaxTeam,&lt;/P&gt;&lt;P&gt;Drilling down to the responsible, the background color should be set when the sum of the amounts is &amp;gt; vMaxResponsible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vMaxTeam= 500000;&lt;/P&gt;&lt;P&gt;SET vMaxResponsible= 75000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/114041_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114040_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I test which of the two levels of my group &lt;EM&gt;Team_Responsible_Amount&lt;/EM&gt; is shown so that I can compare the sum &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;respectively &lt;/SPAN&gt;&lt;/SPAN&gt;with &lt;EM&gt;vMaxTeam&lt;/EM&gt; or &lt;EM&gt;vMaxResponsible&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a test I used following expression for the background color, but with no result:&lt;/P&gt;&lt;P&gt;=If ((Dimensionality()=1) and (Index(GetCurrentField(Team_Responsible_Amount),'TEAM')&amp;gt;0), rgb(255,180,180))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 13:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079939#M359969</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2016-02-09T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079940#M359970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the GetCurrentField function to check which level of a group is active. If you're having problems getting it to work then post a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 17:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079940#M359970</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-09T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079941#M359971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use the GetCurrentField() function. But as I indicated the fields in my drill down group are &lt;SPAN style="text-decoration: underline;"&gt;expressions&lt;/SPAN&gt;, not real fields.&lt;/P&gt;&lt;P&gt;What does the GetCurrentField() give back when the fields are calculated fields, and how do you test which of the fields is shown?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Included is an strongly simplified version of my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;P&gt;SET vLanguage = 'E';&lt;/P&gt;&lt;P&gt;SET vMaxTeam= 170000;&lt;/P&gt;&lt;P&gt;SET vMaxResponsible= 40000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as definition of the expression back color:&lt;/P&gt;&lt;P&gt;=If ((Dimensionality()=1) and (Index(GetCurrentField('Team_Responsible_Amount'),'TEAM')&amp;gt;0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxTeam),rgb(255,180,180)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxResponsible),rgb(255,180,180)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this as a result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="114169" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114169_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;But I want this as a result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="114170" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114170_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.W.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 12:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079941#M359971</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2016-02-10T12:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079942#M359972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If (Dimensionality()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Index(GetCurrentField('Team_Responsible_Amount'),'TEAM')&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxTeam),rgb(255,180,180)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxResponsible),rgb(255,180,180))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;=If ((Dimensionality()=1) and (Index(GetCurrentField('Team_Responsible_Amount'),'TEAM')&amp;gt;0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxTeam),rgb(255,180,180)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxResponsible),rgb(255,180,180)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;removes the background color from the total lines.&lt;/P&gt;&lt;P&gt;Still the GetCurrentField() function doesn't give me the level of the drill down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079942#M359972</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2016-02-10T13:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079943#M359973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GetCurrentField function does work with the expressions you use in the drill down group. But it does not return the label you gave the expressions, but the expressions themselves. Those expression texts aren't very useful, but you can use the length of those expression texts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If ((Dimensionality()=1) and &lt;STRONG&gt;(len(GetCurrentField(Team_Responsible_Amount))=37&lt;/STRONG&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxTeam),rgb(255,180,180)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Sum(AMOUNT)&amp;gt;$(vMaxResponsible),rgb(255,180,180)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 17:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079943#M359973</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-10T17:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to test which of the levels of a drill down group is shown?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079944#M359974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert&lt;/P&gt;&lt;P&gt;it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-test-which-of-the-levels-of-a-drill-down-group-is-shown/m-p/1079944#M359974</guid>
      <dc:creator>rudywelvaert</dc:creator>
      <dc:date>2016-02-11T09:42:02Z</dc:date>
    </item>
  </channel>
</rss>

