<?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: Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195664#M876200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!!!&amp;nbsp; That worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 19:22:26 GMT</pubDate>
    <dc:creator>albertestrada</dc:creator>
    <dc:date>2016-10-27T19:22:26Z</dc:date>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195659#M876195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone explain why a simple calculation does not work when calculating a dimension?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if (max(BILL_DATE)&amp;gt;Today(),'T','F')&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is OK, although it creates a invalid Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&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/Calculated-Dimension/m-p/1195659#M876195</guid>
      <dc:creator>albertestrada</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195660#M876196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Max(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; BILL_DATE) &amp;gt; Today(), 'T', 'F')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 18:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195660#M876196</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-26T18:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195661#M876197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If(Max(BILL_DATE) &amp;gt; Today(), 'T', 'F'), BILL_DATE)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 18:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195661#M876197</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-26T18:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195662#M876198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny both options worked! Does this mean only aggregated type formulas work in the dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a more complex example where I am generating a recency score by customer. The formula works below in a measure within a table by customer. Although when I try to use the recency score as a dimension it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See sample app attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 838px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" width="320"&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd; background: #4f81bd;"&gt;# of Days since last transaction&lt;/TD&gt;&lt;TD class="xl67" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: none; background: #4f81bd;"&gt;Max Date of Data Set&lt;/TD&gt;&lt;TD class="xl67" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: none; background: #4f81bd;"&gt;minus&lt;/TD&gt;&lt;TD class="xl67" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none; background: #4f81bd;"&gt;Max Date per Customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="81" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: 0.5pt solid #4f81bd; border-left: 0.5pt solid #4f81bd;"&gt;vLastTransaction&lt;/TD&gt;&lt;TD class="xl69" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: 0.5pt solid #4f81bd; border-left: none;" width="242"&gt;MAX(total{&amp;lt;MONTHDIFF = {"&amp;gt;=0&amp;lt;=11"}, BILL_TYPE_DESC = {"Invoice"} &amp;gt;}BILL_DATE)&lt;/TD&gt;&lt;TD class="xl69" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: 0.5pt solid #4f81bd; border-left: none;" width="100"&gt;-&lt;/TD&gt;&lt;TD class="xl69" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: 0.5pt solid #4f81bd; border-left: none;" width="176"&gt;MAX({&amp;lt;MONTHDIFF = {"&amp;gt;=0&amp;lt;=11"}, BILL_TYPE_DESC = {"Invoice"} &amp;gt;} BILL_DATE)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="19"&gt;&lt;STRONG&gt;Formula to assign Recency Score&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd; background: #4f81bd;"&gt;Formula&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: white; font-weight: bold; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none; background: #4f81bd;"&gt;Comment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;lt; 8 ,3,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score 3 : if last transaction less than 1 week&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 8 and [$(vLastTransaction)] &amp;lt; 15 ,2,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score 2 : if last transaction within 2 weeks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 15 and [$(vLastTransaction)] &amp;lt; 22 ,1,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score 1 : if last transaction within 3 weeks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 22 and [$(vLastTransaction)] &amp;lt; 29 ,0,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score 0 : if last transaction within 4 weeks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 29 and [$(vLastTransaction)] &amp;lt; 60, -1,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score -1 : if last transaction within 2 months&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: none; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 60 and [$(vLastTransaction)] &amp;lt; 90 ,-2,&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: none; border-left: none;"&gt;//Score -2 : if last transaction within 3 months&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: none; border-bottom: 0.5pt solid #4f81bd; border-left: 0.5pt solid #4f81bd;"&gt;if [$(vLastTransaction)] &amp;gt;= 90 ,-3,'N/A')))))))&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 9pt; color: black; font-family: Calibri; border-top: 0.5pt solid #4f81bd; border-right: 0.5pt solid #4f81bd; border-bottom: 0.5pt solid #4f81bd; border-left: none;"&gt;//Score -3 : if last transaction greater 3 months&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195662#M876198</guid>
      <dc:creator>albertestrada</dc:creator>
      <dc:date>2016-10-27T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195663#M876199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;if ($(vLastTransaction) &amp;lt; 8 ,3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 8 and $(vLastTransaction) &amp;lt; 15 ,2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 15 and $(vLastTransaction) &amp;lt; 22 ,1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 22 and $(vLastTransaction) &amp;lt; 29 ,0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 29 and $(vLastTransaction) &amp;lt; 60, -1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 60 and $(vLastTransaction) &amp;lt; 90 ,-2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ($(vLastTransaction) &amp;gt;= 90 ,-3,'N/A')))))))&lt;SPAN style="color: #ff0000;"&gt;, Customer)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142269_Capture.PNG" style="height: 370px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195663#M876199</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T19:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195664#M876200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!!!&amp;nbsp; That worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/1195664#M876200</guid>
      <dc:creator>albertestrada</dc:creator>
      <dc:date>2016-10-27T19:22:26Z</dc:date>
    </item>
  </channel>
</rss>

