<?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 Wildmatch and ** returning 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563882#M741987</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing high reload time issue using wildmatch function in backend script in below :&lt;/P&gt;&lt;P&gt;if(wildmatch(Attribute, '*DATE*') or wildmatch(Attribute, '*date*') or wildmatch(Attribute, '*Date*'),&lt;BR /&gt;date(floor([Attribute Value]),'MM/DD/YYYY'),&lt;BR /&gt;if(wildmatch(Attribute, '*prem*') or wildmatch(Attribute, '*PREM*') or wildmatch(Attribute, '*Prem*'),&lt;BR /&gt;text(num([Attribute Value],'$#,##0.00')),&lt;BR /&gt;text([Attribute Value]))) as [Attribute Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is taking 1hr to reload and if i skip this wildmatch then it taked hardly 10 mins.&lt;/P&gt;&lt;P&gt;Can you please how I can fix this issue and what I can user instead of wildmatch in script&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Mahamed_Qlik</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563882#M741987</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing high reload time issue using wildmatch function in backend script in below :&lt;/P&gt;&lt;P&gt;if(wildmatch(Attribute, '*DATE*') or wildmatch(Attribute, '*date*') or wildmatch(Attribute, '*Date*'),&lt;BR /&gt;date(floor([Attribute Value]),'MM/DD/YYYY'),&lt;BR /&gt;if(wildmatch(Attribute, '*prem*') or wildmatch(Attribute, '*PREM*') or wildmatch(Attribute, '*Prem*'),&lt;BR /&gt;text(num([Attribute Value],'$#,##0.00')),&lt;BR /&gt;text([Attribute Value]))) as [Attribute Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is taking 1hr to reload and if i skip this wildmatch then it taked hardly 10 mins.&lt;/P&gt;&lt;P&gt;Can you please how I can fix this issue and what I can user instead of wildmatch in script&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563882#M741987</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563893#M741988</link>
      <description>&lt;P&gt;May be try to simplify it to this&lt;/P&gt;&lt;PRE&gt;Pick(WildMatch(Upper(Attribute), '*DATE*', '*PREM*') + 1,
  Text([Attribute Value]),
  Date(Floor([Attribute Value]), 'MM/DD/YYYY'),
  Text(Num([Attribute Value], '$#,##0.00'))
) as [Attribute Value],&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563893#M741988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563902#M741989</link>
      <description>Thanks for sharing , I will try and let you know.&lt;BR /&gt;But I still have one query that you are also using wild-match function then how it will help to reduce reload time</description>
      <pubDate>Tue, 02 Apr 2019 12:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563902#M741989</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-02T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563907#M741990</link>
      <description>&lt;P&gt;I am not sure if the WildMatch is the problem or if is the problem.... I have suggested to remove the if and test.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563907#M741990</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563908#M741991</link>
      <description>Okay. I will user it and watch the result and also let you know.&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 02 Apr 2019 12:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563908#M741991</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-02T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563956#M741992</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is still taking of time to reload.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563956#M741992</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-02T13:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563971#M741993</link>
      <description>&lt;P&gt;Is this happening while loading from a qvd or any other source?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563971#M741993</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T13:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563976#M741994</link>
      <description>loading from QVD only</description>
      <pubDate>Tue, 02 Apr 2019 13:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563976#M741994</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-02T13:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563996#M741995</link>
      <description>&lt;P&gt;So, that is the issue.... create this new field before you create the qvd and then bring in this as a field and that should resolve your issue... The problem is that by creating this, you are breaking the optimized load. And this has nothing to do with this complicated calculation, just add 0 as Dummy and the optimized load will break&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1563996#M741995</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564287#M741996</link>
      <description>I am sorry but I not getting you.&lt;BR /&gt;I have already created qvd and we loading this QVD in data model level and in there we are doing this trasformation to the field</description>
      <pubDate>Wed, 03 Apr 2019 06:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564287#M741996</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-03T06:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564487#M741997</link>
      <description>&lt;P&gt;So, what I am trying to say is that create this new field before you create a qvd.... for example&lt;/P&gt;&lt;PRE&gt;Table:
LOAD FieldA,
FieldB,
....,
Pick(WildMatch(Upper(Attribute), '*DATE*', '*PREM*') + 1,
  Text([Attribute Value]),
  Date(Floor([Attribute Value]), 'MM/DD/YYYY'),
  Text(Num([Attribute Value], '$#,##0.00'))
) as [Attribute Value]
FROM XYZ;

STORE Table into XYZ.qvd (qvd);&lt;/PRE&gt;&lt;P&gt;and now load from your qvd with Attribute Value already fixed in it....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 11:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564487#M741997</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-03T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564911#M741998</link>
      <description>Table:&lt;BR /&gt;LOAD FieldA,&lt;BR /&gt;FieldB,&lt;BR /&gt;....,&lt;BR /&gt;Pick(WildMatch(Upper(Attribute), '*DATE*', '*PREM*') + 1,&lt;BR /&gt;Text([Attribute Value]),&lt;BR /&gt;Date(Floor([Attribute Value]), 'MM/DD/YYYY'),&lt;BR /&gt;Text(Num([Attribute Value], '$#,##0.00'))&lt;BR /&gt;) as [Attribute Value]&lt;BR /&gt;FROM XYZ.qvd;&lt;BR /&gt;&lt;BR /&gt;This is my script.</description>
      <pubDate>Thu, 04 Apr 2019 06:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1564911#M741998</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-04T06:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565076#M741999</link>
      <description>&lt;P&gt;Did you try changing it to what I mentioned &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 11:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565076#M741999</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-04T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565151#M742000</link>
      <description>Yes...It is still taking the same time. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565151#M742000</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-04T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565158#M742001</link>
      <description>&lt;P&gt;What is the new script? Can you share both the scripts you use to create the qvd and then the script you use to load the qvd?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565158#M742001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-04T12:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565196#M742002</link>
      <description>see below is the script.&lt;BR /&gt;&lt;BR /&gt;The comments line is creating issue. Just below it I put yours but that is again giving me same result&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;Key,&lt;BR /&gt;factkey,&lt;BR /&gt;Attribute,&lt;BR /&gt;// if(wildmatch(Attribute, '*DATE*') or wildmatch(Attribute, '*date*') or wildmatch(Attribute, '*Date*'),&lt;BR /&gt;// date(floor([Attribute Value]),'MM/DD/YYYY'),&lt;BR /&gt;// if(wildmatch(Attribute, '*prem*') or wildmatch(Attribute, '*PREM*') or wildmatch(Attribute, '*Prem*'),&lt;BR /&gt;// text(num([Attribute Value],'$#,##0.00')),&lt;BR /&gt;// text([Attribute Value]))) as [Attribute Value],&lt;BR /&gt;Pick(WildMatch(Upper(Attribute), '*DATE*', '*PREM*') + 1,&lt;BR /&gt;Text([Attribute Value]),&lt;BR /&gt;Date(Floor([Attribute Value]), 'MM/DD/YYYY'),&lt;BR /&gt;Text(Num([Attribute Value], '$#,##0.00'))&lt;BR /&gt;) as [Attribute Value],&lt;BR /&gt;if(len(num([Attribute Value],'###,###,###,###,###'))&amp;gt;0,[Attribute],null()) as [Attribute Num],&lt;BR /&gt;num([Attribute Value],'###,###,###,###,###') as [Attribute Value Num]&lt;BR /&gt;FROM&lt;BR /&gt;$(vQVDPath)Fact.qvd(qvd);</description>
      <pubDate>Thu, 04 Apr 2019 13:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565196#M742002</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-04T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565208#M742003</link>
      <description>&lt;P&gt;Are you having difficulty understand my suggestion? I don't even think you are even trying to do what I have proposed.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 13:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565208#M742003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-04T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch and ** returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565232#M742004</link>
      <description>Yes I got it, you mean to say that I should create this new field at the time of QVD store.&lt;BR /&gt;But, I am storing this QVD at ETL so dont you think it will good practice to do such transformation in ETL script ?</description>
      <pubDate>Thu, 04 Apr 2019 14:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-and-returning-0/m-p/1565232#M742004</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-04T14:10:26Z</dc:date>
    </item>
  </channel>
</rss>

