<?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 Problem with dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-dimension/m-p/1031710#M922912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everybody who read this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m actually stuck with Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table in SQL server wich can be represented like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ID = a basic autoincrement id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; = date when contribution is done&lt;/P&gt;&lt;P&gt;Contribution = a Code who refer to a contribution (ex : 1 = Creation, 100=In process, 19=send to validation, 20 = Validation Problem, &lt;SPAN style="font-size: 13.3333px;"&gt;15 = finish&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;CodeDocument = a key who refer to Document table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created a calender from the date (wich is used to filter in qlikview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exemple with 1 document : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Document_tmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load * inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;id,date,contribution,codedocument,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;001,01/01/2016 10:50:00,1,105&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;200,05/01/2016 15:32:00,100,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;259,09/01/2016 12:00:00,19,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;421,19/01/2016 07:10:59,20,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;517,20/01/2016 10:50:00,19,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;639,01/01/2016 10:50:00,15,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We are trying to do a graphic wich show the last state know on an interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;By example : we wanna know wich contribution was the last between thde 01/01/2016 and the 09/01/2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I used a simple table with this : &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dimennsion =aggr(MaxString({&amp;lt;Day={"&amp;lt;=$(=max(Day))"},ID={"=$(=max(ID))"}&amp;gt;}Contribution),CodeDocument)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Day come from our calendar.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression =&amp;nbsp; Count({&amp;lt;Day={"&amp;lt;=$(=max(Day))"},ID={"=$(=max(ID))"}&amp;gt;}CodeDocument)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Our problem is, on the dimension the maxstring({set analysis}Contribution} answer the 100 (in the exemple over) instead of 19.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you for your help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dimension/m-p/1031710#M922912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everybody who read this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m actually stuck with Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table in SQL server wich can be represented like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ID = a basic autoincrement id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; = date when contribution is done&lt;/P&gt;&lt;P&gt;Contribution = a Code who refer to a contribution (ex : 1 = Creation, 100=In process, 19=send to validation, 20 = Validation Problem, &lt;SPAN style="font-size: 13.3333px;"&gt;15 = finish&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;CodeDocument = a key who refer to Document table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created a calender from the date (wich is used to filter in qlikview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exemple with 1 document : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Document_tmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load * inline [&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;id,date,contribution,codedocument,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;001,01/01/2016 10:50:00,1,105&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;200,05/01/2016 15:32:00,100,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;259,09/01/2016 12:00:00,19,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;421,19/01/2016 07:10:59,20,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;517,20/01/2016 10:50:00,19,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;639,01/01/2016 10:50:00,15,105&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We are trying to do a graphic wich show the last state know on an interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;By example : we wanna know wich contribution was the last between thde 01/01/2016 and the 09/01/2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I used a simple table with this : &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dimennsion =aggr(MaxString({&amp;lt;Day={"&amp;lt;=$(=max(Day))"},ID={"=$(=max(ID))"}&amp;gt;}Contribution),CodeDocument)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Day come from our calendar.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression =&amp;nbsp; Count({&amp;lt;Day={"&amp;lt;=$(=max(Day))"},ID={"=$(=max(ID))"}&amp;gt;}CodeDocument)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Our problem is, on the dimension the maxstring({set analysis}Contribution} answer the 100 (in the exemple over) instead of 19.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you for your help !!&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/Problem-with-dimension/m-p/1031710#M922912</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dimension/m-p/1031711#M922913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactely sure what you need here,but maybe try&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; font-size: 13.3333px;"&gt;=aggr( FirstSortedValue({&amp;lt;Day={"&amp;lt;=$(=max(Day))"} &amp;gt;} Contribution, -ID ) ,CodeDocument)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dimension/m-p/1031711#M922913</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-27T16:17:38Z</dc:date>
    </item>
  </channel>
</rss>

