<?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: Use dimension as expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675157#M455900</link>
    <description>&lt;P&gt;Thank you! Your solution works perfectly! Have a nice day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;T&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 07:21:22 GMT</pubDate>
    <dc:creator>Mr_small_t</dc:creator>
    <dc:date>2020-02-13T07:21:22Z</dc:date>
    <item>
      <title>Use dimension as expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675037#M455898</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;For this question i use the following example table:&lt;/P&gt;&lt;P&gt;TEST_TABLE:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;id,yr,course,ind1, ind2,prov&lt;BR /&gt;001,2017,a,0,0,10&lt;BR /&gt;001,2017,a,1,0,11&lt;BR /&gt;001,2018,b,0,1,12&lt;BR /&gt;001,2019,c,0,1,13&lt;BR /&gt;002,2018,a,1,0,20&lt;BR /&gt;002,2018,a,0,0,21&lt;BR /&gt;002,2019,b,0,1,22&lt;BR /&gt;002,2020,c,0,1,23&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Where id is an identification number, yr is year, course is a course code, ind1 and ind2 are [0,1]-indicators indicating which course was completed for level 1 and 2, and prov is the course provider.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output i want is a table with id in rows, yr in colomns, where the cells are populated with the course&amp;nbsp; code completed.&lt;/P&gt;&lt;P&gt;I use a pivot table/chart. In the attached picture there two tables, where I for simplicity have yr as rows instead of colomns. There you also can see the expressions I have written. In the first table the correct course provider and course code is listed. Then i want to use the course dimension as expression.&amp;nbsp;In the second table I have tried to solve this, but course code a is not listed.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By reading posts in the Qlik-community, it seems like this can be solved by aggr. I have used aggr in several other expressions,&amp;nbsp;but I have not been able to figure it out this time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope someone can help me!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Torbjørn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675037#M455898</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2024-11-16T01:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension as expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675084#M455899</link>
      <description>&lt;P&gt;I think you can get away without using aggr()...&lt;/P&gt;&lt;P&gt;If you set your chart up like this:&lt;BR /&gt;Dimension 1: id&lt;BR /&gt;Dimension 2: yr&lt;BR /&gt;Expression:&amp;nbsp;only({&amp;lt;ind1={1}&amp;gt;+&amp;lt;ind2={1}&amp;gt;} course)&lt;/P&gt;&lt;P&gt;You end up with a table that looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="screenshot.png" style="width: 468px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28354i19D6BA555C603288/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot.png" alt="screenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is any possibility of having more than one course in a year, you may want to change your expression to:&lt;BR /&gt;concat({&amp;lt;ind1={1}&amp;gt;+&amp;lt;ind2={1}&amp;gt;} course, ', ')&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675084#M455899</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2020-02-12T22:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension as expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675157#M455900</link>
      <description>&lt;P&gt;Thank you! Your solution works perfectly! Have a nice day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;T&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 07:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-as-expression/m-p/1675157#M455900</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-02-13T07:21:22Z</dc:date>
    </item>
  </channel>
</rss>

