<?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: Shorten string - search out value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896726#M74003</link>
    <description>&lt;P&gt;If it is only digits and no digits in the folder structure then you can get the desired result by using &lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/KeepChar.htm" target="_self"&gt;keepchar&lt;/A&gt;()&lt;/P&gt;
&lt;P&gt;Try this: KeepChar([Your string], '1234567890')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 18:10:24 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2022-02-23T18:10:24Z</dc:date>
    <item>
      <title>Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896724#M74002</link>
      <description>&lt;P&gt;Hello, I have a string with different file names at the end. &lt;BR /&gt;Once&lt;BR /&gt;&lt;EM&gt;D:\Data\3423.jpg&lt;/EM&gt;&lt;BR /&gt;and then&lt;BR /&gt;&lt;EM&gt;D:\Data\999934.JPG&lt;/EM&gt;&lt;BR /&gt;or also&lt;BR /&gt;&lt;EM&gt;D:\Data\4545.JPG&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;How can I get only the numerical value 3423, 999934 or 4545? &lt;BR /&gt;I have no more ideas!!!&lt;/P&gt;
&lt;P&gt;Thank you very much and all the best!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896724#M74002</guid>
      <dc:creator>sroettger</dc:creator>
      <dc:date>2022-02-23T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896726#M74003</link>
      <description>&lt;P&gt;If it is only digits and no digits in the folder structure then you can get the desired result by using &lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/KeepChar.htm" target="_self"&gt;keepchar&lt;/A&gt;()&lt;/P&gt;
&lt;P&gt;Try this: KeepChar([Your string], '1234567890')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896726#M74003</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-02-23T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896730#M74004</link>
      <description>&lt;P&gt;You can also do the more generic solution fetching the name using subfield(subfield())&lt;/P&gt;
&lt;P&gt;SubField(SubField([YourString], '\',-1),'.',1)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896730#M74004</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-02-23T18:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896731#M74005</link>
      <description>&lt;P&gt;In case your directories might include numbers as well, you could use something like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1645641023778.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72933i65496F6AE7884183/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1645641023778.png" alt="MarcoWedel_0-1645641023778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     SubField(SubField(Path,'\',-1),'.',1) as Number
Inline [
Path
D:\Data\3423.jpg
D:\Data\999934.JPG
D:\Data\4545.JPG
D:\PathWithNumber6789\12345.JPG
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1896731#M74005</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-23T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898607#M74176</link>
      <description>&lt;P&gt;Hi and thank you!&lt;/P&gt;
&lt;P&gt;It&amp;nbsp; works with "SubField" - BUT,&amp;nbsp; what can I do, if I want the ImageFileName, like&lt;/P&gt;
&lt;P&gt;3423.jpg&lt;/P&gt;
&lt;P&gt;999934.jpg&lt;/P&gt;
&lt;P&gt;or also 3343_3.jpg (new Case).&lt;/P&gt;
&lt;P&gt;Than, SubField dosn't work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What can I do?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898607#M74176</guid>
      <dc:creator>sroettger</dc:creator>
      <dc:date>2022-03-01T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898624#M74178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22743"&gt;@sroettger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like below:&lt;/P&gt;
&lt;P&gt;SubField(Path,'\',-1)&lt;/P&gt;
&lt;P&gt;Subfield will work even if it's new case like mentioned&amp;nbsp;&lt;SPAN&gt;3343_3.jpg&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898624#M74178</guid>
      <dc:creator>Iswarya_</dc:creator>
      <dc:date>2022-03-01T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten string - search out value</title>
      <link>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898952#M74207</link>
      <description>&lt;P&gt;SubField() still would work to&amp;nbsp;also implement this new requirement, but you could as well use Mid() and Index() to extract the string following the last '\' delimiter, i.e. the file name including extension:&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="MarcoWedel_0-1646170275784.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73309iAB2D4DD255F38114/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1646170275784.png" alt="MarcoWedel_0-1646170275784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     SubField(Path,'\',-1) as File,
     Mid(Path,Index(Path,'\',-1)+1) as File2
Inline [
Path
D:\Data\3423.jpg
D:\Data\999934.JPG
D:\Data\4545.JPG
D:\PathWithNumber6789\12345.JPG
D:\Data\999934.jpg
D:\Data\3343_3.jpg
1234_5.jpg
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 21:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Shorten-string-search-out-value/m-p/1898952#M74207</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-03-01T21:34:20Z</dc:date>
    </item>
  </channel>
</rss>

