<?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 Calculated Dimension not working / Error in Calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-not-working-Error-in-Calculated-dimension/m-p/1726893#M452074</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with creating a calculated dimension.&lt;/P&gt;&lt;P&gt;I have an expression which works when done on textbox however when made a calculated dimension it does not work.&lt;/P&gt;&lt;P&gt;Please see below:&lt;/P&gt;&lt;P&gt;expression:&lt;/P&gt;&lt;P&gt;=if(Date(Date#((Effective_Month_Key), 'YYYYMM'), 'YYYYMM') - Date(Date#(Date(max(Last_Hire_Dte)), 'YYYY/MM/DD'), 'YYYYMM') &amp;gt;=90 and Staff_Type_Descr ='Temporary','Permanent',Staff_Type_Descr)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skzwane01_0-1594395050634.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37299i8820A02A41557FA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skzwane01_0-1594395050634.png" alt="skzwane01_0-1594395050634.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works fine on the textbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When done as a calculated dimension it does not work. Please see below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skzwane01_1-1594395209710.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37300i69613896B3A17444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skzwane01_1-1594395209710.png" alt="skzwane01_1-1594395209710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please assist. How can I resolve ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:23:16 GMT</pubDate>
    <dc:creator>skzwane01</dc:creator>
    <dc:date>2024-11-16T18:23:16Z</dc:date>
    <item>
      <title>Calculated Dimension not working / Error in Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-not-working-Error-in-Calculated-dimension/m-p/1726893#M452074</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with creating a calculated dimension.&lt;/P&gt;&lt;P&gt;I have an expression which works when done on textbox however when made a calculated dimension it does not work.&lt;/P&gt;&lt;P&gt;Please see below:&lt;/P&gt;&lt;P&gt;expression:&lt;/P&gt;&lt;P&gt;=if(Date(Date#((Effective_Month_Key), 'YYYYMM'), 'YYYYMM') - Date(Date#(Date(max(Last_Hire_Dte)), 'YYYY/MM/DD'), 'YYYYMM') &amp;gt;=90 and Staff_Type_Descr ='Temporary','Permanent',Staff_Type_Descr)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skzwane01_0-1594395050634.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37299i8820A02A41557FA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skzwane01_0-1594395050634.png" alt="skzwane01_0-1594395050634.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works fine on the textbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When done as a calculated dimension it does not work. Please see below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skzwane01_1-1594395209710.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37300i69613896B3A17444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skzwane01_1-1594395209710.png" alt="skzwane01_1-1594395209710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please assist. How can I resolve ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-not-working-Error-in-Calculated-dimension/m-p/1726893#M452074</guid>
      <dc:creator>skzwane01</dc:creator>
      <dc:date>2024-11-16T18:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension not working / Error in Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-not-working-Error-in-Calculated-dimension/m-p/1726897#M452075</link>
      <description>&lt;P&gt;you need aggr function to work your calculated dimension correctly&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&lt;STRONG&gt;aggr(&lt;/STRONG&gt;if(Date(Date#((Effective_Month_Key), 'YYYYMM'), 'YYYYMM') - Date(Date#(Date(max(Last_Hire_Dte)), 'YYYY/MM/DD'), 'YYYYMM') &amp;gt;=90 and Staff_Type_Descr ='Temporary','Permanent',Staff_Type_Descr),&lt;STRONG&gt; Staff_Type_Descr&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-not-working-Error-in-Calculated-dimension/m-p/1726897#M452075</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-10T15:38:42Z</dc:date>
    </item>
  </channel>
</rss>

