<?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 to write an expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776756#M1021453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt; : Product&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt; : sum(Max(Date&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Change the format of your date as per your data it can change in the number Tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 09:26:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-24T09:26:52Z</dc:date>
    <item>
      <title>How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776750#M1021447</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 am new to Qlikview and am stuck with a problem. All my other graphs uses specific dates except for 1 graph which uses date range. So I created a new variable called Date (date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 products A, B, C and D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display a straight table with newly created date variable Date(date) of the relevant Product or Products that are being selected. For example, if Product A is selected, Date (date) for Product A is displayed. If Product B and A is selected, the Date (date) for Product A and B is selected. If 3 products selected , for example, Product A, B, D etc, then Date (date ) for Product A, B and D will be displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write the expression.?&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776750#M1021447</guid>
      <dc:creator />
      <dc:date>2015-03-24T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776751#M1021448</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;take straight table&lt;/P&gt;&lt;P&gt;dim product&lt;/P&gt;&lt;P&gt;exp only(Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-or-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(num(Date(date,'dd-mm-yyyy')))&lt;/P&gt;&lt;P&gt;&amp;amp; properties&amp;gt;number&amp;gt;select number format setting&amp;gt;Date with format DD/MM/YYYY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776751#M1021448</guid>
      <dc:creator />
      <dc:date>2015-03-24T08:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776752#M1021449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you elaborate a bit on that? I don't quite understand what it is you're trying to achieve.&lt;/P&gt;&lt;P&gt;So you have four products and every product has exactly one date associated with it?&lt;/P&gt;&lt;P&gt;Do you just want to display those dates acc. to the selection or do you want to make a graph of that?&lt;/P&gt;&lt;P&gt;Are there any kind of events attached to those products that you want to display?&lt;/P&gt;&lt;P&gt;Do you have some kind of master_calendar in your app? That makes creating different graphs with some date_dimension easier in general.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776752#M1021449</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-24T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776753#M1021450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set date variable to Date(Max(date))&lt;/P&gt;&lt;P&gt;Expr: $(vDt) //&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vDt is date variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776753#M1021450</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-24T08:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776754#M1021451</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;The problem does not lies with the writing of the expression for the date range, the problem here lies with an expression to show the selected&amp;nbsp; product. There is already a date varaible being created for date range:=if(Date &amp;gt;=vMinSelectedDateNews and Date &amp;lt;=vMaxSelectedDateNews, Activity_News)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that this expression for date range is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to write an expression to show dates of the selected product (s) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776754#M1021451</guid>
      <dc:creator />
      <dc:date>2015-03-24T08:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776755#M1021452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right.&lt;/P&gt;&lt;P&gt;Each product has one date associated with it. So for example, I select February 2014's data, the news for February 2014 (within this month) will be shown. For this function, I have already had an expression in place, named Date (date): &lt;/P&gt;&lt;P&gt;=if(Date &amp;gt;=vMinSelectedDateNews and Date &amp;lt;=vMaxSelectedDateNews, Activity_News)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to write another expression to show the dates for the selected product I selected. &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For example, if Product A is selected, Date (date) for Product A is displayed. If Product B and A is selected, the Date (date) for Product A and B is selected. If 3 products selected , for example, Product A, B, D etc, then Date (date ) for Product A, B and D will be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776755#M1021452</guid>
      <dc:creator />
      <dc:date>2015-03-24T08:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776756#M1021453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt; : Product&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt; : sum(Max(Date&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Change the format of your date as per your data it can change in the number Tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 09:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776756#M1021453</guid>
      <dc:creator />
      <dc:date>2015-03-24T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776757#M1021454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried, but it says error in calculated dimension &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 09:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776757#M1021454</guid>
      <dc:creator />
      <dc:date>2015-03-24T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to write an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776758#M1021455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the dates displayed in a text box (for example), you can use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(Date, ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise, it would be good if you could post an example QVW document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression/m-p/776758#M1021455</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-24T10:27:43Z</dc:date>
    </item>
  </channel>
</rss>

