<?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: Backend script issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1566470#M741734</link>
    <description>Any solution guys</description>
    <pubDate>Mon, 08 Apr 2019 14:27:11 GMT</pubDate>
    <dc:creator>Mahamed_Qlik</dc:creator>
    <dc:date>2019-04-08T14:27:11Z</dc:date>
    <item>
      <title>Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564292#M741731</link>
      <description>&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if it is issue with wildmatch or if statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564292#M741731</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564304#M741732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you directly reading this data from DB table? If you are using QVD i would suggest first load optimized QVD then by taking resident of it you can use where clause on it.&lt;/P&gt;&lt;P&gt;Another thing you can do is&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;x,&lt;/P&gt;&lt;P&gt;y,&lt;/P&gt;&lt;P&gt;z,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(floor([Attribute Value]),'MM/DD/YYYY') as&amp;nbsp; AttributeValue,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'Date' as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ABC where wildmatch(Attribute,'DATE*','*date*');&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;x,&lt;/P&gt;&lt;P&gt;y,&lt;/P&gt;&lt;P&gt;z,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;text(num([Attribute Value],'$#,##0.00')) as&amp;nbsp; AttributeValue,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'Prem' as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ABC where wildmatch(Attribute,'*&lt;SPAN&gt;prem&lt;/SPAN&gt;*','*&lt;SPAN&gt;PREM&lt;/SPAN&gt;*','*&lt;SPAN&gt;Prem*&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;x,&lt;/P&gt;&lt;P&gt;y,&lt;/P&gt;&lt;P&gt;z,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;text(num([Attribute Value],'$#,##0.00')) as&amp;nbsp; AttributeValue,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'OT' as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from ABC where&amp;nbsp; NOT wildmatch(Attribute,'*&lt;SPAN&gt;prem&lt;/SPAN&gt;*','*&lt;SPAN&gt;PREM&lt;/SPAN&gt;*','*&lt;SPAN&gt;Prem*&lt;/SPAN&gt;',*&lt;SPAN&gt;DATE&lt;/SPAN&gt;*,'&lt;SPAN&gt;*date*&lt;/SPAN&gt;',&lt;SPAN&gt;'*Date*'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-amrinder&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 06:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564304#M741732</guid>
      <dc:creator>amrinder</dc:creator>
      <dc:date>2019-04-03T06:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564323#M741733</link>
      <description>Hi Amrinder&lt;BR /&gt;I am loading this data from QVD.&lt;BR /&gt;&lt;BR /&gt;it is like "from wxz.qvd"</description>
      <pubDate>Wed, 03 Apr 2019 07:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1564323#M741733</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-03T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1566470#M741734</link>
      <description>Any solution guys</description>
      <pubDate>Mon, 08 Apr 2019 14:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1566470#M741734</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-08T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567107#M741735</link>
      <description>&lt;P&gt;Work only on distinct subsets of your table.&lt;BR /&gt;Use Index() instead of Wildmatch().&lt;BR /&gt;If possible use Pick() instead of If().&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;FullTable:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Load * from wxz.qvd(qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;AttributeValues:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD Distinct&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Attribute Value]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident FullTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attributes:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD Distinct&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident AttributeValues;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Left Join(Attributes)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Upper(Attribute) as UAttribute&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident Attributes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Left Join(AttributeValues)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;if(Index(UAttribute,'DATE')&amp;gt;0,1,if(Index(UAttribute,'PREM')&amp;gt;0,2,3)) as AttributeType&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident Attributes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;DROP Table Attributes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Left Join(FullTable)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Attribute Value],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Pick(AttributeType,Date(Floor([Attribute Value])),Text(Num([Attribute Value],'$#,##0.00')),Text([Attribute Value])) as NewAttributeValue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident AttributeValues;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;DROP Field [Attribute Value];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;DROP Table AttributeValues;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RENAME Field NewAttributeValue to [Attribute Value];&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 16:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567107#M741735</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2019-04-09T16:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567532#M741736</link>
      <description>&lt;P&gt;Awesome....!!!&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;It reduced reload time from 40mins to 12 mins. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567532#M741736</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-10T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567640#M741737</link>
      <description>&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found one thing , after executing below line at 00:06:40 ( Capture1.png) it seem halt for about 10 min then directly show the time 00:16:25( Capture2.png)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find attachement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 12:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567640#M741737</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-10T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567724#M741738</link>
      <description>&lt;P&gt;That means, that the last join takes round about 10min. That is normal for joining 26M rows against 400M rows over 2 fields.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 14:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1567724#M741738</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2019-04-10T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1568036#M741739</link>
      <description>&lt;P&gt;Okay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I have one more doubt,&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;AttributeValues:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD Distinct&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[Attribute Value]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident FullTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attributes:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD Distinct&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Attribute&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Resident AttributeValues;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;If we are already loading distinct records in first table "AttributeValues" then whey we are again taking its distinct in the second table "Attributes" which is resident of first itsself&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 08:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1568036#M741739</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-11T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Backend script issue</title>
      <link>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1568044#M741740</link>
      <description>Also how I can rewrite below script to reduce reload time:&lt;BR /&gt;if(len(num([Attribute Value],'###,###,###,###,###'))&amp;gt;0,[Attribute],null()) as [Attribute Num],</description>
      <pubDate>Thu, 11 Apr 2019 09:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Backend-script-issue/m-p/1568044#M741740</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2019-04-11T09:12:51Z</dc:date>
    </item>
  </channel>
</rss>

