<?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 Set Analysis dynamically referencing to dimension value in pivot-table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143223#M505480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have a question regarding a set-analysis: If I calculate a formula using set-analysis with a certain selection, is it possible to additionally select the dimension values (dynamically)?&lt;/P&gt;&lt;P&gt;It that's possible within the set-expression, how would the syntax be?&lt;/P&gt;&lt;P&gt;As an example I got the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="371"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P style="font-weight: bold"&gt;ProductType&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P style="font-weight: bold"&gt;Customer (cyclic group)&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="font-weight: bold"&gt;year&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-weight: bold"&gt;sold per year&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD rowspan="6" width="87"&gt;&lt;P&gt;shoes&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="3" width="159"&gt;&lt;P&gt;test1&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2007&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2009&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test3&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test8&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2007&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test2&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P style="font-weight: bold"&gt;total&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-weight: bold; text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Sold per year contains the following formula:&lt;/P&gt;&lt;P&gt;if(_Category='footwear' and Index('31,32,33,34',Right(CatID,2))&amp;gt;0,Count( distinct total {_Category = {"shoes","shoeslaces"},ProductType = {*}) sold_ID),sum(sold)))&lt;/P&gt;&lt;P&gt;What I need to achieve is that if certain IDs of our "footwear"-category apply, it should count the distinct IDs of another category, since I don't have a summable amount of sold units for these. Sadly, this formula doesn't take into consideration the dimensions in my pivot-table - leading to a amount of 350 wich is the number of sold units in total for ALL customers and years.&lt;/P&gt;&lt;P&gt;Strangely, in the total column nothing is being calculated?&lt;/P&gt;&lt;P&gt;Is there a way to dynamically tell the set-analysis formula to calculate for each line of the given table and select the corresponding values?&lt;/P&gt;&lt;P&gt;(e.g. ProductType = "shoes",Customer = "test1", year = "2007").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 15:13:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-04T15:13:42Z</dc:date>
    <item>
      <title>Set Analysis dynamically referencing to dimension value in pivot-table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143223#M505480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have a question regarding a set-analysis: If I calculate a formula using set-analysis with a certain selection, is it possible to additionally select the dimension values (dynamically)?&lt;/P&gt;&lt;P&gt;It that's possible within the set-expression, how would the syntax be?&lt;/P&gt;&lt;P&gt;As an example I got the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="371"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P style="font-weight: bold"&gt;ProductType&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P style="font-weight: bold"&gt;Customer (cyclic group)&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="font-weight: bold"&gt;year&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-weight: bold"&gt;sold per year&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD rowspan="6" width="87"&gt;&lt;P&gt;shoes&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="3" width="159"&gt;&lt;P&gt;test1&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2007&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2009&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test3&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test8&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2007&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;test2&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="text-align: right"&gt;2008&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-style: italic; font-weight: bold; text-align: right"&gt;350&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P style="font-weight: bold"&gt;total&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P style="font-weight: bold; text-align: right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="87"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="159"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="35"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="91"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Sold per year contains the following formula:&lt;/P&gt;&lt;P&gt;if(_Category='footwear' and Index('31,32,33,34',Right(CatID,2))&amp;gt;0,Count( distinct total {_Category = {"shoes","shoeslaces"},ProductType = {*}) sold_ID),sum(sold)))&lt;/P&gt;&lt;P&gt;What I need to achieve is that if certain IDs of our "footwear"-category apply, it should count the distinct IDs of another category, since I don't have a summable amount of sold units for these. Sadly, this formula doesn't take into consideration the dimensions in my pivot-table - leading to a amount of 350 wich is the number of sold units in total for ALL customers and years.&lt;/P&gt;&lt;P&gt;Strangely, in the total column nothing is being calculated?&lt;/P&gt;&lt;P&gt;Is there a way to dynamically tell the set-analysis formula to calculate for each line of the given table and select the corresponding values?&lt;/P&gt;&lt;P&gt;(e.g. ProductType = "shoes",Customer = "test1", year = "2007").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 15:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143223#M505480</guid>
      <dc:creator />
      <dc:date>2009-05-04T15:13:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis dynamically referencing to dimension value in pivot-table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143224#M505481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easy to assist if you upload a QVW with some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 00:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143224#M505481</guid>
      <dc:creator />
      <dc:date>2009-05-07T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Set Analysis dynamically referencing to dimension value in pivot-table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143225#M505482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, i've found a solution to this. Adding in the dimension/group names after the total modifier seems to do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(_Category='footwear' and Index('31,32,33,34',Right(CatID,2))&amp;gt;0,Count( distinct total &lt;B&gt;&amp;lt;CustomerGrp,Year&amp;gt;&lt;/B&gt; {_Category = {"shoes","shoeslaces"},ProductType = {*}) sold_ID),sum(sold)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-dynamically-referencing-to-dimension-value-in-pivot/m-p/143225#M505482</guid>
      <dc:creator />
      <dc:date>2009-05-07T15:08:01Z</dc:date>
    </item>
  </channel>
</rss>

