<?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 I cannot calculate the difference between two data. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65366#M17971</link>
    <description>&lt;P&gt;I would like to count differnece betwen past day price and current price of BTC.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30932.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31060iE8025B1B76DDE9F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="30932.png" alt="30932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I think that the problem might be with "$" and "," in my text data. What should I do to fix this? My idea with ToNumber Doesn't work. &lt;span class="lia-inline-image-display-wrapper" image-alt="30933.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31061i672FC8A636E367B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="30933.png" alt="30933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Norbert Florczak&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sat, 17 Feb 2024 15:54:00 GMT</pubDate>
    <dc:creator>bazygon</dc:creator>
    <dc:date>2024-02-17T15:54:00Z</dc:date>
    <item>
      <title>I cannot calculate the difference between two data.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65366#M17971</link>
      <description>&lt;P&gt;I would like to count differnece betwen past day price and current price of BTC.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30932.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31060iE8025B1B76DDE9F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="30932.png" alt="30932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I think that the problem might be with "$" and "," in my text data. What should I do to fix this? My idea with ToNumber Doesn't work. &lt;span class="lia-inline-image-display-wrapper" image-alt="30933.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31061i672FC8A636E367B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="30933.png" alt="30933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Norbert Florczak&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Feb 2024 15:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65366#M17971</guid>
      <dc:creator>bazygon</dc:creator>
      <dc:date>2024-02-17T15:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: I cannot calculate the difference between two data.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65367#M17972</link>
      <description>&lt;P&gt;Hello Norbert,&lt;/P&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV data-message-author-role="assistant" data-message-id="40dc81f2-c677-49d1-841c-1389e2a5bb2f" class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;You are thinking correctly, you can't cast that when there's a character that is not a number. You can solve that by simply using a nested function&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;ToNumber(Replace([BTC Past Day Price ],"$",""))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Before convert, you have to replace the characters that are not a number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daniel Sanhueza&lt;BR /&gt;RPA Professional Developer&lt;BR /&gt;Deloitte&lt;BR /&gt;America/Santiago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Feb 2024 03:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65367#M17972</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2024-02-18T03:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: I cannot calculate the difference between two data.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65368#M17973</link>
      <description>&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Norbert Florczak&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Feb 2024 22:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/65368#M17973</guid>
      <dc:creator>bazygon</dc:creator>
      <dc:date>2024-02-18T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot calculate the difference between two data.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/109010#M49425</link>
      <description>&lt;P&gt;You can also do it without replacing any characters:&lt;/P&gt;&lt;P&gt;ToNumber(Right([BTC Past Day Price],Len([BTC Past Day Price])-1))&lt;/P&gt;&lt;P&gt;This is assuming that the dollar sign will always be present, and as the first character from the left.&lt;/P&gt;&lt;P&gt;If it's variable, then you will need to use InStr() to find it first, and then calculate how many characters to use based on its location.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 06:51:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-cannot-calculate-the-difference-between-two-data/m-p/109010#M49425</guid>
      <dc:creator>asilarow</dc:creator>
      <dc:date>2024-03-27T06:51:26Z</dc:date>
    </item>
  </channel>
</rss>

