<?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: Help with measure divison in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2516496#M70006</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388108" data-lia-user-login="angadarora18" class="lia-mention lia-mention-user"&gt;angadarora18&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about how your data tables look like and how you count shipment quantity and delivery quantity.&lt;/P&gt;
&lt;P&gt;I create some sample data for illustration.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And count by these two measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;shipment quantity = CALCULATE(COUNT('Table'[Order]),FILTER('Table','Table'[Status]="shipment"))
delivery quantity = CALCULATE(COUNT('Table'[Order]),FILTER('Table','Table'[Status]="delivery"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, just take them to do the division.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PercentValue = [shipment quantity]/[delivery quantity]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks like this. And sometimes, you need to take attention to the format of the result, especially for the decimal data, you may need change the numbers of decimal places shown to see the correct result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know how your tables look like, the relationships you create for them and how you create these two count measures. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 06:37:33 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2022-05-16T06:37:33Z</dc:date>
    <item>
      <title>Help with measure divison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2505346#M69360</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to PowerBI and am looking for some assistance. I am working on a dashboard that was already created so I am unfamiliar with the foundations of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two visual cards of data (shipment quantity and delivery quantity) and am trying to divide the two to get a percentage value in another visual card, however the division I am doing does not get me a proper value. Any ideas for what I can do? Any help would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 15:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2505346#M69360</guid>
      <dc:creator>angadarora18</dc:creator>
      <dc:date>2022-05-10T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with measure divison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2505589#M69375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388108" data-lia-user-login="angadarora18" class="lia-mention lia-mention-user"&gt;angadarora18&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is hard to tell what the issue is. You might wanna share some data and screenshots of the error. But I'll give it shot anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If each of the visual is using a measure, I'd write the new "percentage" measure like this:&lt;/P&gt;&lt;PRE&gt;DivideMeasure = 
DIVIDE ( [Measure1], [Measure2] )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards you can switch the Format of the measure by clicking on it in the field pane and then under &lt;STRONG&gt;Measure tools&lt;/STRONG&gt; you can change the Format to Percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 17:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2505589#M69375</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-05-10T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with measure divison</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2516496#M70006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388108" data-lia-user-login="angadarora18" class="lia-mention lia-mention-user"&gt;angadarora18&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about how your data tables look like and how you count shipment quantity and delivery quantity.&lt;/P&gt;
&lt;P&gt;I create some sample data for illustration.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And count by these two measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;shipment quantity = CALCULATE(COUNT('Table'[Order]),FILTER('Table','Table'[Status]="shipment"))
delivery quantity = CALCULATE(COUNT('Table'[Order]),FILTER('Table','Table'[Status]="delivery"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, just take them to do the division.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PercentValue = [shipment quantity]/[delivery quantity]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks like this. And sometimes, you need to take attention to the format of the result, especially for the decimal data, you may need change the numbers of decimal places shown to see the correct result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know how your tables look like, the relationships you create for them and how you create these two count measures. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:37:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-measure-divison/m-p/2516496#M70006</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-05-16T06:37:33Z</dc:date>
    </item>
  </channel>
</rss>

