<?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: How to replace multiple strings in the same Expression/field using replaceString function in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277112#M2066</link>
    <description>&lt;P&gt;Can you try this :&lt;BR /&gt;| fieldsAdd CategoryReplaced = replaceString(replaceString(Category, "A", "XML"), "B", "TEXT")&lt;BR /&gt;please check the simple Example :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MuhammadGamal_0-1747170555778.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27982i7AFE3206004E57C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MuhammadGamal_0-1747170555778.png" alt="MuhammadGamal_0-1747170555778.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MuhammadGamal_1-1747170649215.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27983iCA610FC9B7E0F151/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MuhammadGamal_1-1747170649215.png" alt="MuhammadGamal_1-1747170649215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 21:08:26 GMT</pubDate>
    <dc:creator>MuhammadGamal</dc:creator>
    <dc:date>2025-05-13T21:08:26Z</dc:date>
    <item>
      <title>How to replace multiple strings in the same Expression/field using replaceString function</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277020#M2060</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have this requirement to replace multiple strings in an&amp;nbsp;&lt;SPAN&gt;expression which is having two different&amp;nbsp;substrings.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the Example below: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Category field has two results either A or B and I want to replace 'A' with 'XML' and 'B' with 'TEXT'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have used below command with&amp;nbsp;&lt;STRONG&gt;replaceString&lt;/STRONG&gt; and it worked for 'A'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fieldsAdd replaceString(Category, "A", "XML")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I replace the another string B in the same&amp;nbsp;Category field(without adding new&amp;nbsp;&lt;STRONG&gt;fieldsAdd&lt;/STRONG&gt; command.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 10:48:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277020#M2060</guid>
      <dc:creator>Kaladhar</dc:creator>
      <dc:date>2025-05-13T10:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace multiple strings in the same Expression/field using replaceString function</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277104#M2064</link>
      <description>&lt;P&gt;if "&lt;SPAN&gt;Category field has two results either A or B" why do you need &lt;STRONG&gt;&lt;EM&gt;replaceString&lt;/EM&gt;&lt;/STRONG&gt;, not just &lt;EM&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/EM&gt;?&lt;BR /&gt;&lt;BR /&gt;If my understanding of assumption is correct, this could look like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(Category="A"),
record(Category="B")
| fieldsAdd Category = coalesce(
  if(Category=="A","XML"),
  if(Category=="B","TEXT"))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1747168120207.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27979i32955156584E5383/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krzysztof_hoja_0-1747168120207.png" alt="krzysztof_hoja_0-1747168120207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 20:28:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277104#M2064</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-05-13T20:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace multiple strings in the same Expression/field using replaceString function</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277112#M2066</link>
      <description>&lt;P&gt;Can you try this :&lt;BR /&gt;| fieldsAdd CategoryReplaced = replaceString(replaceString(Category, "A", "XML"), "B", "TEXT")&lt;BR /&gt;please check the simple Example :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MuhammadGamal_0-1747170555778.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27982i7AFE3206004E57C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MuhammadGamal_0-1747170555778.png" alt="MuhammadGamal_0-1747170555778.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MuhammadGamal_1-1747170649215.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27983iCA610FC9B7E0F151/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MuhammadGamal_1-1747170649215.png" alt="MuhammadGamal_1-1747170649215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 21:08:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277112#M2066</guid>
      <dc:creator>MuhammadGamal</dc:creator>
      <dc:date>2025-05-13T21:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace multiple strings in the same Expression/field using replaceString function</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277156#M2072</link>
      <description>&lt;P&gt;This works too. Thank you for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking to get my hands on 'string functions' by dynatrace also more results might be added in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:46:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-replace-multiple-strings-in-the-same-Expression-field/m-p/277156#M2072</guid>
      <dc:creator>Kaladhar</dc:creator>
      <dc:date>2025-05-14T08:46:15Z</dc:date>
    </item>
  </channel>
</rss>

