<?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: Identify which dimension is at each row level in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511452#M105058</link>
    <description>&lt;P&gt;dimensionality() helps me identify the level 1,2,3,...&lt;BR /&gt;what I want is to identify the dimension name so that I aggr by it&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 10:30:09 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2025-03-25T10:30:09Z</dc:date>
    <item>
      <title>Identify which dimension is at each row level</title>
      <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511429#M105052</link>
      <description>&lt;P&gt;Hello I got the below pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_1-1742895632466.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178947iD1CD482DF0EFA1BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_1-1742895632466.png" alt="ali_hijazi_1-1742895632466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the measure num_org is a simple sum with conditions in set analysis&lt;BR /&gt;the second measure denum_org is avg( aggr (sum(), Contract Type))&lt;BR /&gt;&lt;BR /&gt;but since there are several dimensions to be selected and expanded what I want is the following:&lt;BR /&gt;for the row at the level of the Contract type I want the denum_org to be:&lt;BR /&gt;&lt;STRONG&gt;avg( aggr (sum(), Contract Type))&lt;BR /&gt;&lt;/STRONG&gt;while for the row at the level of the contract :&lt;BR /&gt;&lt;STRONG&gt;avg( aggr (sum(), [Contract Type],Contract))&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and so on&lt;BR /&gt;and also if the user swaps the dimensions I want the aggregation by to be based on the dimension which is at the level of the row&lt;BR /&gt;&lt;BR /&gt;so if the user swaps Contract Type with Region then the expression at the level of the region should be:&lt;BR /&gt;&lt;STRONG&gt;avg( aggr (sum(), Region))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so how can I identify dynamically the dimension in the row of the pivot table if I"m at the level of Contracct type, Contract, or region,...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1742896115106.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178948i367D5EC72F5F6844/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1742896115106.png" alt="ali_hijazi_0-1742896115106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;here if I want to get the result by contract I need to add Contract to the aggregation so the expression is&amp;nbsp;&lt;BR /&gt;avg(aggr(sum(), Contract type, Contract))&lt;/P&gt;&lt;P&gt;However on the row at the level of "Internal" I want the calculation to be avg(aggr(sum(),Contract Type)) to keep the original value 5%&lt;/P&gt;&lt;P&gt;hope I clearly explained the issue&lt;BR /&gt;Kindly advise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 09:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511429#M105052</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-03-25T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify which dimension is at each row level</title>
      <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511441#M105053</link>
      <description>&lt;P&gt;Hi, Check if you can use Dimensionality() function, which will help you to identify each row separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 10:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511441#M105053</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2025-03-25T10:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Identify which dimension is at each row level</title>
      <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511452#M105058</link>
      <description>&lt;P&gt;dimensionality() helps me identify the level 1,2,3,...&lt;BR /&gt;what I want is to identify the dimension name so that I aggr by it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 10:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511452#M105058</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-03-25T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identify which dimension is at each row level</title>
      <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511540#M105082</link>
      <description>&lt;P&gt;Not tested give a try&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Sum(num_org), $(=GetObjectField(Dimensionality()))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 17:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511540#M105082</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-03-25T17:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Identify which dimension is at each row level</title>
      <link>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511665#M105096</link>
      <description>&lt;P&gt;what I did is the following:&lt;BR /&gt;I put my expression in a variable to which I made the aggregation by column parameteric&amp;nbsp;&lt;BR /&gt;and the expression in the chart looks like this and it works well&lt;BR /&gt;&lt;BR /&gt;pick(wildmatch(GetObjectDimension(Dimensionality()-1)&lt;BR /&gt;,'Contract Type','Contract','act division','act department','act name','region','entity mgt','resource full name')&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([Contract Type]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([CNT]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([ACT Division]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([ACT Department]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([ACT Name]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([Region]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([Entity MGT]))&lt;BR /&gt;,$(vL.Rates.Denom.Group.By([Resource Full Name]))&lt;BR /&gt;&lt;BR /&gt;and the variable is as per below:&lt;BR /&gt;avg(&lt;BR /&gt;aggr&lt;BR /&gt;(&lt;BR /&gt;sum(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;&lt;BR /&gt;Scenario={[actual]}&lt;BR /&gt;,NMY={[$(vL.UpToDate)]}&lt;BR /&gt;,AGGREGATION_TYPE={ytd}&lt;BR /&gt;,MONTH_DIFF={$(vL.CY.MonthDiff.Actual.DeNumer.Range)}&lt;BR /&gt;,HCTYPE={[HC]}&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;HC)&lt;BR /&gt;,&lt;STRONG&gt;$1&lt;/STRONG&gt;,[%PERIOD]))&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 12:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Identify-which-dimension-is-at-each-row-level/m-p/2511665#M105096</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-03-26T12:01:53Z</dc:date>
    </item>
  </channel>
</rss>

