<?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: Evaluate mathematical equations / operators as text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2968724#M99149</link>
    <description>&lt;P&gt;So each cell has a text field with operators such as "/" and "*"? There's no way for you to get the numeric data in separate columns, I suppose? That would make it easier.&lt;BR /&gt;&lt;BR /&gt;It's probably possible to use a combination of FIND() (or SEARCH()), and MID() although it might become complicated depending on what data you have.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it always a multiplication followed by a division? Does every cell start with "(("? If so, you can start at the third character and go to the asterisk (using FIND() and MID()), then multiply with the second number which you will find at the character after "*" but before "))" (using FIND() and MID()). And so on.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If it's not the same structure the same principle as above applies, although you will have to adjust accordingly.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 17:58:57 GMT</pubDate>
    <dc:creator>TomasAndersson</dc:creator>
    <dc:date>2022-12-14T17:58:57Z</dc:date>
    <item>
      <title>Evaluate mathematical equations / operators as text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2968501#M99129</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated column in Power BI - below image.&lt;/P&gt;&lt;P&gt;I need to return the calculation of these equations:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is it any way to evaluate this calculations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:53:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2968501#M99129</guid>
      <dc:creator>Sorina</dc:creator>
      <dc:date>2022-12-14T15:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate mathematical equations / operators as text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2968724#M99149</link>
      <description>&lt;P&gt;So each cell has a text field with operators such as "/" and "*"? There's no way for you to get the numeric data in separate columns, I suppose? That would make it easier.&lt;BR /&gt;&lt;BR /&gt;It's probably possible to use a combination of FIND() (or SEARCH()), and MID() although it might become complicated depending on what data you have.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it always a multiplication followed by a division? Does every cell start with "(("? If so, you can start at the third character and go to the asterisk (using FIND() and MID()), then multiply with the second number which you will find at the character after "*" but before "))" (using FIND() and MID()). And so on.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If it's not the same structure the same principle as above applies, although you will have to adjust accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 17:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2968724#M99149</guid>
      <dc:creator>TomasAndersson</dc:creator>
      <dc:date>2022-12-14T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate mathematical equations / operators as text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2969902#M99202</link>
      <description>&lt;P&gt;Thank you very much for your reply.&amp;nbsp;&lt;BR /&gt;They are no rules in the equations I have. they are different from eachother.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 07:07:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2969902#M99202</guid>
      <dc:creator>Sorina</dc:creator>
      <dc:date>2022-12-15T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate mathematical equations / operators as text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2970133#M99215</link>
      <description>&lt;P&gt;Sorry but then I don't really know how to approach this problem. It would be too complicated to use my approach above.&lt;BR /&gt;&lt;BR /&gt;Unless someone else is able to help you, and if you are able to export the column to Excel, you might use the approach described here:&amp;nbsp;&lt;A href="https://superuser.com/questions/253353/excel-function-that-evaluates-a-string-as-if-it-were-a-formula" target="_blank"&gt;Excel function that evaluates a string as if it were a formula? - Super User&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 08:36:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-mathematical-equations-operators-as-text/m-p/2970133#M99215</guid>
      <dc:creator>TomasAndersson</dc:creator>
      <dc:date>2022-12-15T08:36:15Z</dc:date>
    </item>
  </channel>
</rss>

