<?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: Issue creating measure dividing two columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343841#M59238</link>
    <description>&lt;P&gt;Your Measure is Right but make sure that your both column should the same format. Try to create a VARIABLE of divide and -1 from that VARIABLE. If it does not work then send sample data or a PBIX file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 05:58:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-17T05:58:45Z</dc:date>
    <item>
      <title>Issue creating measure dividing two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343819#M59236</link>
      <description>&lt;P&gt;I'm trying to divide two columns and then subtract it by 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example an expected output is&lt;BR /&gt;110,237.00 / 115,029.00 = 0.96&amp;nbsp;&lt;/P&gt;&lt;P&gt;0.96 - 1 = -0.04&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure I wrote is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = DIVIDE( SUM([Column 1]) , SUM([Column 2]) , 0) - 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I add - 1 after divide the measure becomes very slow and gives the wrong output. All the values become -1.00&lt;BR /&gt;What am i doing wrong here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2022 05:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343819#M59236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T05:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating measure dividing two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343841#M59238</link>
      <description>&lt;P&gt;Your Measure is Right but make sure that your both column should the same format. Try to create a VARIABLE of divide and -1 from that VARIABLE. If it does not work then send sample data or a PBIX file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 05:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343841#M59238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T05:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating measure dividing two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343853#M59240</link>
      <description>&lt;P&gt;Both columns are decimal and I also tried making a variable of divide and subtracting by 1 but still same issue&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 06:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2343853#M59240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T06:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating measure dividing two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2357845#M60121</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why not try calculated column ? Since you are dividing based on rows, calculated column would be more appropriate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Original data (Decimal Number):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then create a calculated column .&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;calculated Column = DIVIDE('Table'[Column1],'Table'[Column2])-1&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;The final result is as shown :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have attached my pbix file , you can refer to it .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Community Support Team _ Ailsa Tao&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-creating-measure-dividing-two-columns/m-p/2357845#M60121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-24T07:09:18Z</dc:date>
    </item>
  </channel>
</rss>

