<?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: Get values of a dimension for a current selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318438#M28385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post the expression you used? did you add the fieldnames to be ignored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 11:50:26 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-05-10T11:50:26Z</dc:date>
    <item>
      <title>Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318432#M28379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to access the values for a specific dimension for the current selection so that I can include them in an expression. I have come across GetFieldSelections but I think this only returns values for a dimension if it is actually used in the selection itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do this for the following use case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have salespeople assigned to teams within an office which in turn is assigned to a region. If I select a region and and then a sales team I would like to return the following in a table/chart (example numbers):&lt;/P&gt;&lt;P&gt;1) Number of salespeople in team selected = 6&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2) Number of salespeople in region (for team selected) = 125&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) Number of salespeople in office (for team selected) = 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) is simply count(distinct salesperson_id) &lt;/P&gt;&lt;P&gt;2) can be obtained by using GetFieldSelections as the field region was used in the selection&amp;nbsp; &lt;/P&gt;&lt;P&gt;3)&amp;nbsp; is my challenge as I want to retrieve the offices that are part of the selected region (or alternatively put the offices for the region that the team ultimately selected belongs to). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers very welcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the P() operator?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318432#M28379</guid>
      <dc:creator />
      <dc:date>2017-05-10T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318433#M28380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't this be just plain associative logic, the default Qlik behaviour, if your tables are connected properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318433#M28380</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-10T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318434#M28381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3) Number of salespeople in office (for team selected) = 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;Try below&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ignore selections made in salespersonid or salespersonname&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;salesperson_id&lt;/SPAN&gt;=,salespersonname=,Region = p(Region)&amp;gt;}distinct salesperson_id)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318434#M28381</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-10T11:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318435#M28382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have 5 regions and I have 50 offices in those regions and 200 teams in those 50 offices.&lt;/P&gt;&lt;P&gt;Lets also say I have a box with a simple expression: count(distinct salesperson_ID)&lt;/P&gt;&lt;P&gt;I would like a box alongside this one that tells me how many salespeople there are in the office(s) that are part of the selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example say I select NorthWest for the region and then select Team78. My box mentioned above would tell me that there are 6 people in Team78. The box alongside it I want to tell me how many people there are in Manchester which happens to be the office that Team78 belongs to. If I could retrieve from the selection of Team78 that the office value is always Manchester I would then be able to reference that in the expression for the box I want!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clearer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318435#M28382</guid>
      <dc:creator />
      <dc:date>2017-05-10T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318436#M28383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It'd be easier for people here to assist if you can post a sample data with expected output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318436#M28383</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-10T11:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318437#M28384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that one but it gives me the same count - ie. if I select an individual salesperson it returns 1 whereas I want it to return the number of salespeople that are in the region that the salesperson belongs to!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318437#M28384</guid>
      <dc:creator />
      <dc:date>2017-05-10T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318438#M28385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post the expression you used? did you add the fieldnames to be ignored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318438#M28385</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-10T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318439#M28386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;OK:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;salesperson_ID,region,office,team&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1,NorthWest,Manchester,Team78&lt;/P&gt;&lt;P&gt;2,NorthWest,Manchester,Team78&lt;/P&gt;&lt;P&gt;3,NorthWest,Manchester,Team78&lt;/P&gt;&lt;P&gt;4,NorthWest,Manchester,Team34&lt;/P&gt;&lt;P&gt;5,NorthWest,Manchester,Team23&lt;/P&gt;&lt;P&gt;6,NorthWest,Liverpool,Team56&lt;/P&gt;&lt;P&gt;7,NorthWest,Liverpool,Team56&lt;/P&gt;&lt;P&gt;8,London,City,Team01&lt;/P&gt;&lt;P&gt;9,London,City,Team01&lt;/P&gt;&lt;P&gt;10,London,City,Team02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have selected "NorthWest" and then salesperson_ID=3 then:&lt;/P&gt;&lt;P&gt;count(distinct salesperson_ID) returns 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want an expression that returns 5 (ie. the number of salespeople in Manchester; the office which salesperson_ID=3 belongs to....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318439#M28386</guid>
      <dc:creator />
      <dc:date>2017-05-10T11:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318440#M28387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if I selected Team78 to start with then:&lt;/P&gt;&lt;P&gt;count(distinct salesperson_ID) returns 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still want an expression that returns 5 (ie. the number of salespeople in Manchester, the office which Team78 belongs to...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318440#M28387</guid>
      <dc:creator />
      <dc:date>2017-05-10T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318441#M28388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;OFFICE=P(OFFICE)&amp;gt;}distinct SALESPERSON_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me 1 if I have an individual sales person selected; ie. the same as count(distinct SALESPERSON_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to include ALL fields that should be ignored?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318441#M28388</guid>
      <dc:creator />
      <dc:date>2017-05-10T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318442#M28389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;office=p() &amp;gt;} DISTINCT salesperson_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318442#M28389</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-10T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318443#M28390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You superstar - that is spot on!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318443#M28390</guid>
      <dc:creator />
      <dc:date>2017-05-10T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of a dimension for a current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318444#M28391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes , mostly the field that you will be making selections on,&lt;/P&gt;&lt;P&gt;please note adding&amp;nbsp; {&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;&amp;nbsp; will ignore all selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-modifiers.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-modifiers.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-modifiers.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 13:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-values-of-a-dimension-for-a-current-selection/m-p/1318444#M28391</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-10T13:06:36Z</dc:date>
    </item>
  </channel>
</rss>

