<?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: Null value Invalid expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1523306#M748909</link>
    <description>&lt;P&gt;look like what i need...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2018 05:55:40 GMT</pubDate>
    <dc:creator>vadim_grab</dc:creator>
    <dc:date>2018-12-21T05:55:40Z</dc:date>
    <item>
      <title>Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522336#M748903</link>
      <description>&lt;P&gt;&amp;nbsp;Hi, All&lt;/P&gt;&lt;P&gt;I have a script expression&lt;/P&gt;&lt;P&gt;if(Len(Trim(ofddata_hour.fiscalSign))=0 or ofddata_hour.fiscalSign='-' or ofddata_hour.fiscalSign='' or IsNull(ofddata_hour.fiscalSign), Null(),Count(DISTINCT ofddata_hour.fiscalSign)) as fiscalSign&lt;/P&gt;&lt;P&gt;which don't work.&lt;/P&gt;&lt;P&gt;Script&amp;nbsp;returns an error "Invalid expression"&lt;/P&gt;&lt;P&gt;Why? Any idea?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Vadim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522336#M748903</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2024-11-16T21:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522337#M748904</link>
      <description>&lt;P&gt;What if you add a comparison for the IsNull?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Len(Trim(ofddata_hour.fiscalSign))=0 or ofddata_hour.fiscalSign='-' or ofddata_hour.fiscalSign='' or IsNull(ofddata_hour.fiscalSign)&lt;STRONG&gt;=-1&lt;/STRONG&gt;, Null(),Count(DISTINCT ofddata_hour.fiscalSign)) as fiscalSign&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: IsNull evaluates to -1 for true and 0 for false.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 21:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522337#M748904</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2018-12-18T21:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522402#M748905</link>
      <description>&lt;P&gt;unfortunately did not help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script Error 2018-12-19 09.34.36.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2387i661CBA52541CA47A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Script Error 2018-12-19 09.34.36.png" alt="Script Error 2018-12-19 09.34.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 06:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522402#M748905</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2018-12-19T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522423#M748906</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;issue might be because&amp;nbsp; of Count function usage in the Script with out any aggregation.&lt;/P&gt;&lt;P&gt;try the same expression in any chart&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 07:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522423#M748906</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-12-19T07:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522451#M748907</link>
      <description>&lt;P&gt;My script code below.&lt;/P&gt;&lt;P&gt;I used Group by&amp;nbsp;.&amp;nbsp; With expression&amp;nbsp;&lt;SPAN&gt;Count(DISTINCT ofddata_hour.fiscalSign) as fiscalSign&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;instead of&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Len(Trim(ofddata_hour.fiscalSign))=0 or ofddata_hour.fiscalSign='-' or ofddata_hour.fiscalSign='' or IsNull(ofddata_hour.fiscalSign)=0, Null(),Count(DISTINCT ofddata_hour.fiscalSign)) as fiscalSign&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data is loading...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ofddata_day:&lt;BR /&gt;Qualify *;&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;DayStart(ofddata_hour.DateTimeBridge) as DateTimeBridge,&lt;BR /&gt;DayStart(ofddata_hour.DateTime) as DateTime,&lt;BR /&gt;DayStart(ofddata_hour.DateTime) as DateTimeStart,&lt;BR /&gt;DayEnd(ofddata_hour.DateTime) as DateTimeEnd,&lt;BR /&gt;ofddata_hour.operator as operator,&lt;BR /&gt;Sum(ofddata_hour.totalNds18118) as totalNds18118,&lt;BR /&gt;Sum(ofddata_hour.totalNds10110) as totalNds10110,&lt;BR /&gt;Sum(ofddata_hour.totalNds10) as totalNds10,&lt;BR /&gt;Sum(ofddata_hour.totalNds0) as totalNds0,&lt;BR /&gt;Sum(ofddata_hour.totalSum) as totalSum,&lt;BR /&gt;Sum(ofddata_hour.cashTotalSum) as cashTotalSum,&lt;BR /&gt;Sum(ofddata_hour.ecashTotalSum) as ecashTotalSum,&lt;BR /&gt;Sum(ofddata_hour.items_sum1) as items_sum,&lt;BR /&gt;Sum(ofddata_hour.totalSKU) as totalSKU,&lt;BR /&gt;Sum(ofddata_hour.uniqueSKU) as uniqueSKU,&lt;BR /&gt;Sum(ofddata_hour.totalQty) as totalQty,&lt;BR /&gt;// if(Len(Trim(ofddata_hour.fiscalSign))=0 or ofddata_hour.fiscalSign='-' or ofddata_hour.fiscalSign='' or IsNull(ofddata_hour.fiscalSign)=0, Null(),Count(DISTINCT ofddata_hour.fiscalSign)) as fiscalSign,&lt;BR /&gt;Count(DISTINCT ofddata_hour.fiscalSign) as fiscalSign,&lt;BR /&gt;ofddata_hour.bridge_aggr_key as bridge_aggr_key,&lt;BR /&gt;Sum(ofddata_hour.prepaidSum) as prepaidSum,&lt;BR /&gt;Sum(ofddata_hour.creditSum) as creditSum,&lt;BR /&gt;Sum(ofddata_hour.provisionSum) as provisionSum,&lt;BR /&gt;ofddata_hour.operationType as operationType,&lt;BR /&gt;ofddata_hour.AirportSales as AirportSales,&lt;BR /&gt;ofddata_hour.Bridge_key as Bridge_key&lt;BR /&gt;Resident ofddata_hour&lt;BR /&gt;&lt;STRONG&gt;Group by DayStart(ofddata_hour.DateTimeBridge), DayStart(ofddata_hour.DateTime), DayEnd(ofddata_hour.DateTime),ofddata_hour.operator, ofddata_hour.bridge_aggr_key, ofddata_hour.operationType, ofddata_hour.AirportSales, ofddata_hour.Bridge_key;&lt;/STRONG&gt;&lt;BR /&gt;Unqualify *;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 08:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522451#M748907</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2018-12-19T08:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522508#M748908</link>
      <description>&lt;P&gt;try below expression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;count(DISTINCT&lt;/STRONG&gt;&amp;nbsp; if(Len(Trim(ofddata_hour.fiscalSign))=0 or ofddata_hour.fiscalSign='-' or ofddata_hour.fiscalSign='' or IsNull(ofddata_hour.fiscalSign)=0, Null()&amp;nbsp;,&lt;STRONG&gt; ofddata_hour.fiscalSign&lt;/STRONG&gt;))&amp;nbsp;as fiscalSign,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1522508#M748908</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-12-19T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Null value Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1523306#M748909</link>
      <description>&lt;P&gt;look like what i need...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 05:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-value-Invalid-expression/m-p/1523306#M748909</guid>
      <dc:creator>vadim_grab</dc:creator>
      <dc:date>2018-12-21T05:55:40Z</dc:date>
    </item>
  </channel>
</rss>

