<?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: Can't create a flag to identify a field containing a dash in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138784#M92556</link>
    <description>&lt;P&gt;&lt;SPAN&gt;If(Len(Name) &amp;gt; 0, 1, 0) as EmptyFlag should work. If it doesn't work it means that the length of the Field [Name] is not zero.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does the data actually contain a dash "-" OR is the dash representing Null? If there is an actual dash, then the length will obviously not be zero, and you will need to handle this another way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another question to ask yourself is Why do you want to keep row with no name, and is there a better way to identify rows with no name. Without seeing the actual data and without knowing exactly what you are trying to achieve, it is difficult to provide any specific answers.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 11:37:17 GMT</pubDate>
    <dc:creator>whiteymcaces</dc:creator>
    <dc:date>2023-11-17T11:37:17Z</dc:date>
    <item>
      <title>Can't create a flag to identify a field containing a dash</title>
      <link>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138764#M92553</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I have a table like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ant2_0-1700218109056.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120085i24495C5A5EAF1465/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ant2_0-1700218109056.png" alt="ant2_0-1700218109056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have created the field &lt;STRONG&gt;EmptyFlag&lt;/STRONG&gt; to identify any row that has a null/ empty/ blank in the &lt;STRONG&gt;Name&lt;/STRONG&gt; column.&lt;/P&gt;
&lt;P&gt;In my data load script I've used the following to try and achieve this:&lt;/P&gt;
&lt;P&gt;if(Len(Trim(Name)) = 0, 0, 1) as EmptyFlag&lt;BR /&gt;If(Len(Trim(Name)) &amp;gt; 0, 1, 0) as EmptyFlag&lt;BR /&gt;if(IsNull(Name), 0, 1) as EmptyFlag&lt;BR /&gt;if(Name = '' or Name = '-', 0, 1) as EmptyFlag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, as per above, if the &lt;STRONG&gt;Name&lt;/STRONG&gt; field contains a dash (-), then the &lt;STRONG&gt;EmptyFlag&lt;/STRONG&gt; also contains a dash(-) and not a zero (0).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone advise how I can go about selecting the rows in my table where the &lt;STRONG&gt;Name&lt;/STRONG&gt; column contains a dash.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tony.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 10:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138764#M92553</guid>
      <dc:creator>ant2</dc:creator>
      <dc:date>2023-11-17T10:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create a flag to identify a field containing a dash</title>
      <link>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138784#M92556</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If(Len(Name) &amp;gt; 0, 1, 0) as EmptyFlag should work. If it doesn't work it means that the length of the Field [Name] is not zero.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does the data actually contain a dash "-" OR is the dash representing Null? If there is an actual dash, then the length will obviously not be zero, and you will need to handle this another way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another question to ask yourself is Why do you want to keep row with no name, and is there a better way to identify rows with no name. Without seeing the actual data and without knowing exactly what you are trying to achieve, it is difficult to provide any specific answers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 11:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138784#M92556</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2023-11-17T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create a flag to identify a field containing a dash</title>
      <link>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138843#M92564</link>
      <description>&lt;P&gt;Are you really looking on the data of this table? I assume rather not. A check would be quite simple - just add recno() and rowno() to this load and then pull these record-id's + Name + EmptyFlag in a table-box (means no other fields and no expressions). I think there would be no dashes but continuous record-id's. In this case the dashes (displayed as replace for NULL) are caused from an association between this tables and your other tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 13:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-t-create-a-flag-to-identify-a-field-containing-a-dash/m-p/2138843#M92564</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-17T13:47:14Z</dc:date>
    </item>
  </channel>
</rss>

