<?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: Match Function not getting work with Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730770#M452270</link>
    <description>&lt;P&gt;Match function evaluates the value for each rows when used in load or in chart's expression. So if you are using this formula in text object or variable it will not work as there is no dimensions for multiple selections . But if you select the single value it will work because it's just a single record.&lt;/P&gt;&lt;P&gt;So, if you want to use this condition apart from load statement or chart's expressions. You need to do something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( concat(Date,',')= &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;12/20/2019&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;12/21/2018&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt; , 1 ,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 22:09:43 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-24T22:09:43Z</dc:date>
    <item>
      <title>Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730757#M452267</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Match was not working for the below scenario.&lt;/P&gt;&lt;P&gt;I am selecting some multiple date values in the list box it has to show value '1' else '0'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in my case when i am selecting multiple values it is showing '0' value.&lt;/P&gt;&lt;P&gt;my expression is&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if( Match( Date, '12/20/2019','12/21/2018' ), 1 ,0)&lt;/P&gt;&lt;P&gt;In another trail, what ever I am selecting values I am storing as a variable and passing the variable in the expression even though it is showing incorrect answer.&lt;/P&gt;&lt;P&gt;vDateMulti =concat( distinct chr(39) &amp;amp; Date(Date) ,chr(39) &amp;amp;',') &amp;amp;chr(39)&lt;/P&gt;&lt;P&gt;=if( Match( Date, $(vDateMulti) ), 1 ,0)&lt;/P&gt;&lt;P&gt;According to the selected dates i have to pass some set analysis measures in the place of '1' &amp;amp; '0'.&lt;/P&gt;&lt;P&gt;Appreciate for the help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730757#M452267</guid>
      <dc:creator>chandu441</dc:creator>
      <dc:date>2024-11-16T18:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730759#M452268</link>
      <description>&lt;P&gt;you need to convert&amp;nbsp;&lt;SPAN&gt;vDateMulti&amp;nbsp; into a date format. right now its text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Date# on vDateMulti&amp;nbsp; before comparision&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 19:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730759#M452268</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-07-24T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730770#M452270</link>
      <description>&lt;P&gt;Match function evaluates the value for each rows when used in load or in chart's expression. So if you are using this formula in text object or variable it will not work as there is no dimensions for multiple selections . But if you select the single value it will work because it's just a single record.&lt;/P&gt;&lt;P&gt;So, if you want to use this condition apart from load statement or chart's expressions. You need to do something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( concat(Date,',')= &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;12/20/2019&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;12/21/2018&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt; , 1 ,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730770#M452270</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-24T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730789#M452271</link>
      <description>&lt;P&gt;Hi Dilipranjith,&lt;/P&gt;&lt;P&gt;In Back end script I am defining the Date field as below:-&lt;/P&gt;&lt;P&gt;Date#( Date(Date) , 'MM/DD/YYYY') as Date,&lt;/P&gt;&lt;P&gt;In front end Text object I am checking the below conditions true or not:-&lt;/P&gt;&lt;P&gt;vDateValue=Chr(39)&amp;amp; Replace( GetFieldSelections(Date),',',Chr(39)&amp;amp;','&amp;amp;chr(39) ) &amp;amp; Chr(39)&lt;/P&gt;&lt;P&gt;=if( Match( Date, $(vDateValue) ), 1 ,0)&lt;/P&gt;&lt;P&gt;vDateMulti=concat( distinct chr(39) &amp;amp; Date ,chr(39) &amp;amp;',') &amp;amp;chr(39)&lt;BR /&gt;=if( Match( Date, $(vDateMulti) ), 1 ,0)&lt;/P&gt;&lt;P&gt;Here Date filters are not static, User may select any of the dates in front end according to the given date filters i need to apply some logic set analysis in true condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the fact table example&amp;nbsp; in excel.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandu441&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 07:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730789#M452271</guid>
      <dc:creator>chandu441</dc:creator>
      <dc:date>2020-07-25T07:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730790#M452272</link>
      <description>&lt;P&gt;Hi Kush/MVP,&lt;/P&gt;&lt;P&gt;I have checked your expression in text object&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( concat(Date,',')=&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;12/20/2019&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;12/21/2018&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;, 1 ,0) it is working and showing value '1'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But my Date values are not static it is dynamic user selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I have created the variable 'vDateValue'&amp;nbsp; =Chr(39)&amp;amp; Replace( GetFieldSelections(Date),',',Chr(39)&amp;amp;','&amp;amp;chr(39) ) &amp;amp; Chr(39)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Used in your expression as&amp;nbsp;=if( concat(Date,',')= $(vDateValue) , 1 ,0) I am getting error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Issue was attached to the reply..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chandu441&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 07:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730790#M452272</guid>
      <dc:creator>chandu441</dc:creator>
      <dc:date>2020-07-25T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Match Function not getting work with Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730808#M452276</link>
      <description>&lt;P&gt;change the expression of variable as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;Chr(39)&amp;amp; Concat(Date,',')&amp;amp; Chr(39)&lt;/P&gt;&lt;P&gt;then use below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( concat(Date,',')= $(vDateValue) , 1 ,0)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 11:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Match-Function-not-getting-work-with-Dates/m-p/1730808#M452276</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-25T11:24:42Z</dc:date>
    </item>
  </channel>
</rss>

