<?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 Problem with condition in expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158308#M589670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lott guys...&lt;/P&gt;&lt;P&gt;Frederik.. you got it man.&lt;/P&gt;&lt;P&gt;I did try $(RecentFriday)... but did not try '$(RecentFriday)'... which worked... (just to emphasize... the quotes were missing)&lt;/P&gt;&lt;P&gt;Thanks all once again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2010 17:39:52 GMT</pubDate>
    <dc:creator>boorgura</dc:creator>
    <dc:date>2010-02-24T17:39:52Z</dc:date>
    <item>
      <title>Problem with condition in expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158304#M589665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I came across, something which looks a wierd behavior to me.&lt;/P&gt;&lt;P&gt;I have a chart, where in, the expression should have a condition.&lt;/P&gt;&lt;P&gt;So i have a variable created (in the variable overivew) which evaluates the recent most Friday.&lt;/P&gt;&lt;P&gt;its calculated as '=weekend(today(),-1,-2)'. which works fine when tested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the expression, if i place the condition as if(theDate = RecentFriday,'then do this'), it doesn't work.&lt;/P&gt;&lt;P&gt;instead if I do if(theDate = '2/19/2010','then do this'). it works fine.&lt;/P&gt;&lt;P&gt;and i checked the value of the RecentFriday.... it shows 2/19/2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158304#M589665</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-02-24T17:12:50Z</dc:date>
    </item>
    <item>
      <title>Problem with condition in expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158305#M589667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rocky,&lt;/P&gt;&lt;P&gt;Sometimes the problem in these cases is just date formatting. Try this as the condition: if(num(theDate) = num(RecentFriday)) and see if it works. I've also seen where the date format is actually DD/MM/YYYY even though the date shows as M/DD/YYYY. So try the above condition, and if it doesn't work try some different date-formatting combinations.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158305#M589667</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-02-24T17:19:20Z</dc:date>
    </item>
    <item>
      <title>Problem with condition in expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158306#M589668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you tried using variable expansion, like this:&lt;/P&gt;&lt;P&gt;if(theDate = '$(RecentFriday)','then do this')&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158306#M589668</guid>
      <dc:creator />
      <dc:date>2010-02-24T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Problem with condition in expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158307#M589669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for me it a problem of date mismatch types.&lt;/P&gt;&lt;P&gt;Try to Transform =weekend(today(),-1,-2) in =date(weekend(today(),-1,-2),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;Hope this help&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158307#M589669</guid>
      <dc:creator />
      <dc:date>2010-02-24T17:30:57Z</dc:date>
    </item>
    <item>
      <title>Problem with condition in expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158308#M589670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lott guys...&lt;/P&gt;&lt;P&gt;Frederik.. you got it man.&lt;/P&gt;&lt;P&gt;I did try $(RecentFriday)... but did not try '$(RecentFriday)'... which worked... (just to emphasize... the quotes were missing)&lt;/P&gt;&lt;P&gt;Thanks all once again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-condition-in-expression/m-p/158308#M589670</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-02-24T17:39:52Z</dc:date>
    </item>
  </channel>
</rss>

