<?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 Date Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586768#M217709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried those methods prior to posting the issue here. &lt;/P&gt;&lt;P&gt;Many thanks for your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 May 2014 09:09:36 GMT</pubDate>
    <dc:creator>paul_scotchford</dc:creator>
    <dc:date>2014-05-03T09:09:36Z</dc:date>
    <item>
      <title>Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586762#M217703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a calculated dimension using the below expression (&lt;STRONG&gt;1&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables contain a date e.g. a Start date and a End Date&lt;/P&gt;&lt;P&gt;I was hoping the dimension would be a resultant set of dates but I get none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I hard code the from / to dates instead of the variables , it works fine (yes the variables have values )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly enough the second (&lt;STRONG&gt;2&lt;/STRONG&gt;) expression returns a set of dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the &lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt; is not evaluating when a variable is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone tried something similar ? Am I coding this incorrectly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;1: if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(s6MthPrevEom)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(sPrevMthEom)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2: if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(s6MthPrevEom)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 05:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586762#M217703</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-05-02T05:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586763#M217704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 05:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586763#M217704</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-02T05:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586764#M217705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No sorry too big and secure &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 05:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586764#M217705</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-05-02T05:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586765#M217706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a sample or see: &lt;A href="http://community.qlik.com/docs/DOC-1290" title="http://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and D... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 06:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586765#M217706</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-02T06:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586766#M217707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the dollar symbol before the variable as bellow and try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;1: if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;s6MthPrevEom&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;sPrevMthEom&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;2: if&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;s6MthPrevEom&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 06:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586766#M217707</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-05-02T06:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586767#M217708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have also faced this but get resolved problem using below&lt;/P&gt;&lt;P&gt;you can define varible inscript as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var="=(Your expression)";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in your expression&amp;nbsp; use var not $(var)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 06:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586767#M217708</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-05-02T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586768#M217709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried those methods prior to posting the issue here. &lt;/P&gt;&lt;P&gt;Many thanks for your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 09:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586768#M217709</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-05-03T09:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586769#M217710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If expression 2 works properly, then the problem is related to sPrevMthEom. What do the variables actually contain? You can see this by using the Settings | Variable Overview. I suspect that s6MthPrevEom is a number (so Expr2 works) and sPrevMthEom is a date string, so it would need to be in quotes.I would change the value of sPrevMthEom to a value as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 09:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586769#M217710</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-03T09:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586770#M217711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate your variables.. It will helps to find the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 11:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586770#M217711</guid>
      <dc:creator />
      <dc:date>2014-05-03T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Date Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586771#M217712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi , thanks for the input, the two variables expand out as shown below, the fTxn is used to get the max value of the sales transactions for the country of interest (as we work across time zones))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Both vars return dates of format 'yyyy-mm-dd', we use these vars elsewhere in apps but not as conditional dimensions, hence they do work for other areas of the apps we have. &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Oddly though, these worked at one point during debugging when I removed the $() from them in the dimension calc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The only reason I use a calc dimension is that set analysis did not work for a very large formula to work out a risk score , I'm going to try to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;pre-calc a score in the load script so I can use set analysis in this app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sPrevMthEom = date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthend&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fTxn&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))),-1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;s6MthPrevEom = date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;sPrevMthEom&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-6))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 22:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Date-Dimension/m-p/586771#M217712</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-05-04T22:03:07Z</dc:date>
    </item>
  </channel>
</rss>

