<?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: Simple Division driving me crazy! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840631#M39261</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, we need to check is the value of the Numerator and denominator is as expected or not&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 11:42:00 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-13T11:42:00Z</dc:date>
    <item>
      <title>Simple Division driving me crazy!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840603#M39256</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just can't seem to understand why my tabular model is coming up with the wrong answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I'm doing is dividing one column by the other.&lt;/P&gt;&lt;P&gt;='Stock Analysis'[Physical Quantity (R)]/[Net Usage]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I didn't need to use variables but I've tried lots of different ways to divide it but it keeps coming up with the same problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;19.77686 / 0.014370&lt;/P&gt;&lt;P&gt;The answer is 1,978 not 1,376.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note; the first column Physical Quantity (R) is a hard number created via power query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second number is a calcuated column which I'll include but I don't see how this should have an affect on this simple division:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Net Usage&lt;/STRONG&gt;='Stock Analysis'[Consumption Quantity 12 Months]+'Stock Analysis'[Sold Quantity 12 months]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Consumption Quantity 12 Months&lt;/STRONG&gt;=[Pick Quantity In Previous 12 Months]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick Quantity In Previous 12 Months&lt;/STRONG&gt;:=&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR PreviousDate = Date(Year(CurrentDate),MONTH(CurrentDate)-12,DAY(CurrentDate))&lt;BR /&gt;VAR RESULT =&lt;BR /&gt;CALCULATE( SUM([QtyReporting]),&lt;BR /&gt;FILTER( 'Primary Date Table',&lt;BR /&gt;'Primary Date Table'[Date] &amp;gt;= PreviousDate &amp;amp;&amp;amp; 'Primary Date Table'[Date] &amp;lt;= CurrentDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;RESULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840603#M39256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-13T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Division driving me crazy!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840631#M39261</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, we need to check is the value of the Numerator and denominator is as expected or not&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840631#M39261</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-13T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Division driving me crazy!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840665#M39262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a live connection to SSAS tabular model not a Power BI tabular model so sharing the model would not be possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value of the numerator is the second column along, Physical Quantity (R)&amp;nbsp;@ 19.77&lt;/P&gt;&lt;P&gt;The value of the denominator is the 3rd column from the right, Net Usage&amp;nbsp;@ 0.014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840665#M39262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-13T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Division driving me crazy!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840789#M39265</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;I think there is some misunderstanding, the answer for&amp;nbsp;&lt;SPAN&gt;19.77686 / 0.014370 = 1376 ~&lt;BR /&gt;&lt;BR /&gt;You can use the calculator again, see below image;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Semms like you are ignoring [437] while doing division. The actual divisor is [0.01437] not [0.01]. If you want only 2 decimal places to be used in divisor you can Round Off the number to 2 decimal places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-Division-driving-me-crazy/m-p/1840789#M39265</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-05-13T13:28:43Z</dc:date>
    </item>
  </channel>
</rss>

