<?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: How can I detect changes in dimension's value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799832#M1211587</link>
    <description>&lt;P&gt;It works for the object, but with this solution (adding a calculated dimension) I can't filter by dimension "Category".&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 17:46:15 GMT</pubDate>
    <dc:creator>itdepartment</dc:creator>
    <dc:date>2021-04-15T17:46:15Z</dc:date>
    <item>
      <title>How can I detect changes in dimension's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799533#M1211544</link>
      <description>&lt;P&gt;Hi community! Hope you can help me with this query.&lt;/P&gt;&lt;P&gt;I would like to detect when employees change their category during the year and then showing it in a bar chart.&lt;/P&gt;&lt;P&gt;I made this sample to try explain better:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itdepartment_2-1618417747975.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53034i33695CBE77D43B7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itdepartment_2-1618417747975.png" alt="itdepartment_2-1618417747975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First of all, detect all the situations by employee that I need (highlighted in green)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itdepartment_0-1618417106410.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53024iBE67EBCA6B0C39F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itdepartment_0-1618417106410.png" alt="itdepartment_0-1618417106410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Albert had 2 changes during last year, on March he upgrades from Junior to Senior and on November Senior to Manager.&lt;/P&gt;&lt;P&gt;Becky had 1 change during last year, on September she upgrades from Junior to Senior.&lt;/P&gt;&lt;P&gt;Once I can identify this cases, I need to represent it in a bar chart like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itdepartment_1-1618417392533.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53033i81B250DD2BABA45A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itdepartment_1-1618417392533.png" alt="itdepartment_1-1618417392533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can understand my explanation and give me some positive answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799533#M1211544</guid>
      <dc:creator>itdepartment</dc:creator>
      <dc:date>2021-04-14T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I detect changes in dimension's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799662#M1211562</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65910"&gt;@itdepartment&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Load *,&lt;STRONG&gt; if(Emp = Previous(Emp), If(Category &amp;lt;&amp;gt; Previous(Category), 1, 0)) as Flag&lt;/STRONG&gt; Inline&lt;BR /&gt;[&lt;BR /&gt;Emp, Mth, Category&lt;BR /&gt;AL, Jan, Junior&lt;BR /&gt;AL, Mar, Junior&lt;BR /&gt;AL, Apr, Senior,&lt;BR /&gt;AL, May, Senior&lt;BR /&gt;AL, Jun, Manager&lt;BR /&gt;BY, Jan, Junior&lt;BR /&gt;BY, Mar, Junior&lt;BR /&gt;BY, May, Senior&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Front end:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1618475555764.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53058i2F23E99A71A1301B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1618475555764.png" alt="MayilVahanan_0-1618475555764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 08:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799662#M1211562</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-04-15T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I detect changes in dimension's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799696#M1211572</link>
      <description>&lt;P&gt;Hi MayilVahanan, thanks for your answer. Your tricky is great for a basic dataset, but my script is very complex. So I need to calculate it in chart expression.&lt;/P&gt;&lt;P&gt;I have tried this expressions (and it works) in a straight table.&lt;/P&gt;&lt;P&gt;Column&amp;nbsp;&lt;STRONG&gt;Changes&lt;/STRONG&gt; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;aggr(Above(Category), Employee, (EndMonth,NUMERIC,ASCENDING)) &amp;lt;&amp;gt; aggr(Category,&amp;nbsp; Employee, (EndMonth,NUMERIC,ASCENDING)) and not IsNull(aggr(Above(Category), Employee, (EndMonth,NUMERIC,ASCENDING)))&lt;BR /&gt;,1&lt;BR /&gt;,0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Column&amp;nbsp;&lt;STRONG&gt;Change to&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;aggr(Above(Category), Employee, (MonthEnd,NUMERIC,ASCENDING)) &amp;lt;&amp;gt; aggr(Category,&amp;nbsp; Employee, (MonthEnd,NUMERIC,ASCENDING)) and not IsNull(aggr(Above(Category), Employee, (MonthEnd,NUMERIC,ASCENDING)))&lt;BR /&gt;,aggr(Category, Employee, (MonthEnd,NUMERIC,ASCENDING))&lt;BR /&gt;,null()&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The result in straight table object looks fine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itdepartment_0-1618480814097.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53068iA9D37B866E0CBB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itdepartment_0-1618480814097.png" alt="itdepartment_0-1618480814097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;But now, I want show this as bar chart. If I use the expression &lt;STRONG&gt;[Changes]&lt;/STRONG&gt;, no data show in the bar chart.&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 10:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799696#M1211572</guid>
      <dc:creator>itdepartment</dc:creator>
      <dc:date>2021-04-15T10:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I detect changes in dimension's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799706#M1211573</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65910"&gt;@itdepartment&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can write like below instead of above&lt;/P&gt;&lt;P&gt;Dim:&lt;/P&gt;&lt;P&gt;Aggr(if(Above(Category)&amp;lt;&amp;gt; Category and not IsNull(Above(Category)), Category), &lt;SPAN&gt;Employee&lt;/SPAN&gt;, (&lt;SPAN&gt;EndMonth&lt;/SPAN&gt;,NUMERIC,ASCENDING))&lt;/P&gt;&lt;P&gt;Exp: Count(&lt;SPAN&gt;Employee)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1618483038433.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53071i8E43A29ACD792842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1618483038433.png" alt="MayilVahanan_0-1618483038433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 10:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799706#M1211573</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-04-15T10:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I detect changes in dimension's value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799832#M1211587</link>
      <description>&lt;P&gt;It works for the object, but with this solution (adding a calculated dimension) I can't filter by dimension "Category".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-detect-changes-in-dimension-s-value/m-p/1799832#M1211587</guid>
      <dc:creator>itdepartment</dc:creator>
      <dc:date>2021-04-15T17:46:15Z</dc:date>
    </item>
  </channel>
</rss>

