<?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: Refer to Another Dimension in a Dimension in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677776#M245869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is returning '-' for all rows... I don't know whats happening... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 13:49:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-15T13:49:49Z</dc:date>
    <item>
      <title>Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677771#M245864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a calculated dimension which has got an heavy expression in the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(1+match(...,...,...),...,...,...,...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with about 100 values in the match statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to refer to it in another calculated dimension. This second calculated dimension is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mid(Aggr( Concat(Year &amp;amp; '-' &amp;amp; pick(match(UPPER(Month),&lt;/P&gt;&lt;P&gt;'JAN','FEB','MAR','APR','MAY','JUN', 'JUL','AUG','SEP','OCT','NOV','DEC'), '01','02','03','04','05','06','07','08','09','10','11','12'),','),&lt;/P&gt;&lt;P&gt;MYFIELD),1,7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MYFIELD one of the fields in the data model, the computation is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I replace MYFIELD by the expression for the calculated dimension pick(1+match(...,...,...),...,...,...,...) , result is Null() for all rows. In other words, with this expression for the second calculated dimension,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mid(Aggr( Concat(Year &amp;amp; '-' &amp;amp; pick(match(UPPER(Month),&lt;/P&gt;&lt;P&gt;'JAN','FEB','MAR','APR','MAY','JUN', 'JUL','AUG','SEP','OCT','NOV','DEC'), '01','02','03','04','05','06','07','08','09','10','11','12'),','),&lt;/P&gt;&lt;P&gt;pick(1+match(...,...,...),...,...,...,...)),1,7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result is Null() for all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I refer to the first calculated dimension in this very case ? Is there a workaround ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 11:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677771#M245864</guid>
      <dc:creator />
      <dc:date>2014-07-15T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677772#M245865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There isn't any possibility to refer to a calculated dimension - you could only wrap this calculated dimension in your expression - therefore your approach is generally right. But this could be very complicated and slow. Every return from any expressions-parts must look if they were written manually - especially by returning from list-strings or fieldnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For such cases is it often necessary to use $-sign expansion: $(=YourExpression()). I suggest you tried to simplify your expressions (e.g.: you didn't need your pick(match()) on month, you could use num(month, '00') because date-values are dual()) - and test it partly without a expression-label (the expression could be show null but the label will often show what qv tried to calculate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677772#M245865</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-15T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677773#M245866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar to $-sign expansion, and I do not understnad how to use it in this very case? Would you accept to explain me with an example how to use the $-sign expansion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, do you mean that i can refer to an expression with its label in a calculated dimension ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677773#M245866</guid>
      <dc:creator />
      <dc:date>2014-07-15T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677774#M245867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do You mean this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=mid(Aggr( Concat(Year &amp;amp; '-' &amp;amp; pick(match(UPPER(Month),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'JAN','FEB','MAR','APR','MAY','JUN', 'JUL','AUG','SEP','OCT','NOV','DEC'), '01','02','03','04','05','06','07','08','09','10','11','12'),','),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(=pick(1+match(...,...,...),...,...,...,...))),1,7)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;? What does it change compared to previous version ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677774#M245867</guid>
      <dc:creator />
      <dc:date>2014-07-15T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677775#M245868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=mid(Aggr( Concat(Year &amp;amp; '-' &amp;amp;num(Month, '00'), $(=pick(1+match(...,...,...),...,...,...,...))),1,7)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You want return a field for the aggr - this could be very tricky and you will need many trials ... returning a valid value and give it back as [field] - perhaps it is an alternatively to calculate these in a variable.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For $-sign expansion look here:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-5624"&gt;$-Sign Expansions in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677775#M245868</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-15T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677776#M245869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is returning '-' for all rows... I don't know whats happening... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677776#M245869</guid>
      <dc:creator />
      <dc:date>2014-07-15T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677777#M245870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain your comment inother words ? I do not understand what you suggest here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You want return a field for the aggr - this could be very tricky and you will need many trials ... returning a valid value and give it back as [field] - perhaps it is an alternatively to calculate these in a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&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;"&gt;Thanks for that&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;"&gt;&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677777#M245870</guid>
      <dc:creator />
      <dc:date>2014-07-15T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677778#M245871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, this simple expression for the calculated dimension does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=mid(Aggr( Concat(Year,','),&lt;/P&gt;&lt;P&gt;$(=IF([Corporate Account]='OTHER',[Sales Account], [Corporate Account]))),&lt;/P&gt;&lt;P&gt;,1,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time i get Error in Calculated Dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677778#M245871</guid>
      <dc:creator />
      <dc:date>2014-07-15T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677779#M245872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many things which could be wrong - therefore it needed very many trials ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What worked is:&lt;/P&gt;&lt;P&gt;Aggr( Concat(Year,','), $(=IF([Corporate Account]='OTHER','[Sales Account]', '[Corporate Account]'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or with an additionally variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr( Concat(Year,','), $(var)) with var: =IF([Corporate Account]='OTHER','[Sales Account]', '[Corporate Account]')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most often will be used a simply if-loop for such cases, often combined with dimensonality():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF([Corporate Account]='OTHER',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(Concat(Year,','),[Sales Account]), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(Concat(Year,','),[Corporate Account]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677779#M245872</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-15T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to Another Dimension in a Dimension in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677780#M245873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! this is very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is almost correct. Now, I would like to add conditions on whether to concatenate a given year or not: I append the year for a row if it is verifying conditions as in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr( IF([Product Type]= 'Sales', IF(MasterCodeDesc = 'BASE', IF(Year&amp;gt;2009,Concat( Year,',')))), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=pick(1+match(...,...,....,...),...,....,...,...)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get error in calculated dimension. Could you help me troubleshoot this last point ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again, it helped me a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 08:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-Another-Dimension-in-a-Dimension-in-Pivot-Table/m-p/677780#M245873</guid>
      <dc:creator />
      <dc:date>2014-07-16T08:47:49Z</dc:date>
    </item>
  </channel>
</rss>

