<?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: Need To Suppress Values That Contain A - (dash) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443814#M432932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One question.&amp;nbsp; In my Load script and you would not have known this, I actually load BRN as BRN-ID to avoid any linkage to another table.&amp;nbsp; So, should I change BRN-ID to just BRN?&amp;nbsp; I think I should, but you would know best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 21:02:05 GMT</pubDate>
    <dc:creator>pnn44794</dc:creator>
    <dc:date>2017-11-22T21:02:05Z</dc:date>
    <item>
      <title>Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443808#M432926</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a need to &lt;STRONG&gt;not&lt;/STRONG&gt; display values in a particular column that contain a dash anywhere within the field value.&amp;nbsp; Blanks are okay and valid.&amp;nbsp; The column in question is column E, LOB Template Order, in the attached sample data.&amp;nbsp; I would like to do this from within the Load Script.&amp;nbsp; Currently to get the LOB Template Order value, I have &lt;SPAN&gt;&lt;SPAN&gt;Mid&lt;/SPAN&gt;(&lt;SPAN&gt;BRN&lt;/SPAN&gt;, 3, 7) &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;[LOB Template Order]&lt;/SPAN&gt; &lt;SPAN&gt;in the Load Script.&amp;nbsp; As you can see, LOB Template Order is derived from the BRN value.&amp;nbsp; Is there a way to enhance the Mid statement to do what I want or do I need a different line to do this with?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As always, thanks in advance for any and all help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 00:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443808#M432926</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-13T00:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443809#M432927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use index. Something like:&lt;/P&gt;&lt;P&gt;if(index(YourField,'-')=0,YourField) as WhatEver,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 19:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443809#M432927</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-22T19:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443810#M432928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello m w:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&amp;nbsp; Can I use this with the Mid statement above?&amp;nbsp; Otherwise, I think I would have to use this as a calculated dimension which could cause the straight table to load slowly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 19:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443810#M432928</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-11-22T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443811#M432929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know exactly what you want. You can combine the script anyway you like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(index(YourField,'-')=0,YourField,&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;BRN&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;, 3, 7) &lt;/SPAN&gt;) as WhatEver,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 20:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443811#M432929</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-22T20:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443812#M432930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry m w.&amp;nbsp; I should have been more clear.&amp;nbsp; To get the LOB Template Order value, I use the Mid function on the BRN field and I simply start at the third position and take the next seven characters.&amp;nbsp; The problem with that is I wind up getting these additional values that have a dash in them when I only want 7 digits and if it isn't seven digits, skip it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes more sense.&amp;nbsp; I did use your original reply as a calculated dimension and it does indeed work.&amp;nbsp; If you have no other suggestions based on what I just tried to explain, I'll mark your first answer as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 20:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443812#M432930</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-11-22T20:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443813#M432931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;if(len(keepchar(&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;([BRN-ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 3, 7),'0123456789')=7,&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;([BRN-ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 3, 7)) as &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[LOB Template Order],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 20:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443813#M432931</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-22T20:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443814#M432932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One question.&amp;nbsp; In my Load script and you would not have known this, I actually load BRN as BRN-ID to avoid any linkage to another table.&amp;nbsp; So, should I change BRN-ID to just BRN?&amp;nbsp; I think I should, but you would know best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443814#M432932</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-11-22T21:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443815#M432933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds right to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443815#M432933</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-22T21:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443816#M432934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the following error when running the Load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression: LEN takes 1 parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied and pasted this in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(keepchar(Mid([BRN], 3, 7),'0123456789')=7,Mid([BRN], 3, 7)) as [LOB Template Order2],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443816#M432934</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-11-22T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need To Suppress Values That Contain A - (dash)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443817#M432935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've marked this as the correct answer because it does work.&amp;nbsp; Thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-To-Suppress-Values-That-Contain-A-dash/m-p/1443817#M432935</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-11-22T21:51:01Z</dc:date>
    </item>
  </channel>
</rss>

