<?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: collapse function in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081693#M919511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you get 6 for abc? It is clearly not the sum of 1+5+4, right? In addition, what is the dimension you are using and what is the expression? Would you be able to elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 14:54:05 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-05T14:54:05Z</dc:date>
    <item>
      <title>collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081692#M919510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a new qlik view developer and I wonder if there is a way how to give a value in the expression when a dimension is collapsed.&lt;/P&gt;&lt;P&gt;For example, if we have 3 classes (a, b, c), when collapsed against it should appear value (6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;c&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when collapsed it has to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards,&lt;/P&gt;&lt;P&gt;Stoyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081692#M919510</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081693#M919511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you get 6 for abc? It is clearly not the sum of 1+5+4, right? In addition, what is the dimension you are using and what is the expression? Would you be able to elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 14:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081693#M919511</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081694#M919512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Yes, 6 has nothing to do with the sum of the above, it is just a different value. The dimension is cyclic group and the expression I need to build and let's say I will use variable for it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 05:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081694#M919512</guid>
      <dc:creator />
      <dc:date>2016-05-09T05:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081695#M919513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So how did you come with 6? How does the two table provided above related to each other?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 16:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081695#M919513</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T16:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081696#M919514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;The idea is that I have three regions - east, west and central. This region I use in the dimensions as column in the pivot table. Against these regions I have some actuals sales performed and I have targets for each region, as well as global target. I am taking the targets by region with variables (against each region I have some target shown, defined by the variable). However, I need to say to QV when the "Region" dimension is collapsed (i.e. we have the global actuals for the sales) to show the global target, which is a different figure.&lt;/P&gt;&lt;P&gt;Hope that this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stoyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081696#M919514</guid>
      <dc:creator />
      <dc:date>2016-05-12T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081697#M919515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you used a dimension group "structure" with the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;global --&amp;gt; region --&amp;gt; area --&amp;gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you queried which value is displayed, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(getcurrentfield(structure), 'global', 'region', ...),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(TargetGlobal),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(TargetRegion),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 13:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081697#M919515</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-12T13:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081698#M919516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for the idea, but it does not work in this case. It has to be using somehow the collapse function. Any ideas on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Stoyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 05:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081698#M919516</guid>
      <dc:creator />
      <dc:date>2016-05-17T05:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: collapse function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081699#M919517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best would be you creates a small example with a few inline-data and a few screenshots or an excel to get an idea how the result should look like and which results you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 07:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/collapse-function-in-expression/m-p/1081699#M919517</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-19T07:11:58Z</dc:date>
    </item>
  </channel>
</rss>

