<?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 Craete a calculated dimension based on variebles in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359583#M133496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed using Set Expression is better and more elegant way of solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 May 2012 14:07:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-20T14:07:27Z</dc:date>
    <item>
      <title>Craete a calculated dimension based on variebles</title>
      <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359580#M133493</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;I need to create a chart whose dimension will be created according to 2 variables: one indicates the start date, and the other indicates the end date.&lt;/P&gt;&lt;P&gt;For example, if vStartDate is 2012-01-01 and vEndDate is 2012-01-05, then the dimension of the chart will be consist of all dates between these dates:&lt;/P&gt;&lt;P&gt;2012-01-01, 2012-01-02, 2012-01-03,2012-01-04, 2012-01-05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 08:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359580#M133493</guid>
      <dc:creator />
      <dc:date>2012-05-20T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Craete a calculated dimension based on variebles</title>
      <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359581#M133494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to limit values of an existing date field to a certain range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can probably use a calculated dimension like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( DateField &amp;gt;= '$(vStartDate)' and DateField &amp;lt;= '$(vEndDate)', DateField)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use just DateField as dimension and add a set expression to all your expressions (that need to use an aggregation function then), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum( {&amp;lt; DateField = {"&amp;gt;='$(vStartDate)'&amp;lt;='$(vEndDate)'"} &amp;gt;} Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are often some issues with comparing a variable containing a textual representation of a Date with a date field, i.e. with non-matching date formats. It might be a good idea to create a numerical for your date variables and use these in your calculated dimension / expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 12:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359581#M133494</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-20T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Craete a calculated dimension based on variebles</title>
      <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359582#M133495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless there is more to your needs than I understood, perhaps a better way to achieve what you are after is to use date as the dimension, and put a set expression filter in your expression, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Date = {"&amp;gt;=$(=Date(vStartDate)) &amp;lt;=$(=Date(vEndDate))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart will limit the display to the date range you need and it will perform far better as the filtering is done before the chart is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 12:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359582#M133495</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-20T12:04:35Z</dc:date>
    </item>
    <item>
      <title>Craete a calculated dimension based on variebles</title>
      <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359583#M133496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed using Set Expression is better and more elegant way of solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 14:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/359583#M133496</guid>
      <dc:creator />
      <dc:date>2012-05-20T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Craete a calculated dimension based on variebles</title>
      <link>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/1744294#M453145</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using this expression in my chart&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( DateField &amp;gt;= '$(vStartDate)' and DateField &amp;lt;= '$(vEndDate)', DateField)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The problem is the timestamp field is locked .&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have to show last 5 weeks trend from this selected timestamp. But still i could see only the selected timestamp value. if i unlock the field i can see all five timestamp value. how to show trends dynamically&amp;nbsp; using calculated dimension.&amp;nbsp; can you give me the answer for this&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Deep.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 12:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Craete-a-calculated-dimension-based-on-variebles/m-p/1744294#M453145</guid>
      <dc:creator>deepakkrish</dc:creator>
      <dc:date>2020-09-16T12:29:28Z</dc:date>
    </item>
  </channel>
</rss>

