<?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: Dividing a sum of group by a unique value depending on group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131094#M48909</link>
    <description>&lt;P&gt;Hi Yingjie Li,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks this actually helps. But i guess I should mention that I needed this to work with my date range filter. There's also a date column. How do I apply this formula if there are date filter in it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Sale (USD)&lt;/TD&gt;&lt;TD&gt;Outlets&lt;/TD&gt;&lt;TD&gt;Outlets Size (Sqft)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 03:44:49 GMT</pubDate>
    <dc:creator>naufal_msr</dc:creator>
    <dc:date>2021-10-13T03:44:49Z</dc:date>
    <item>
      <title>Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2123630#M48698</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im quite new here really appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Orders table comprise of Sales, Outlets, and Outlet_Size columns. I'm trying to calculate the rate, which is something like this DIVIDE(SUM(Orders[Sales],Sales[Outlet_Size]). But how do I write a query that can divide a total of all columns, to one single value depending on which outlet ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Appreciate your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2123630#M48698</guid>
      <dc:creator>naufal_msr</dc:creator>
      <dc:date>2021-10-08T08:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2123882#M48703</link>
      <description>&lt;P&gt;Hello, please can you provide some dummy data to better understand what you are trying to achieve? An example of the calculation you want to perform will help to better understand the outcome you are seeking. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2123882#M48703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-08T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2125935#M48770</link>
      <description>&lt;P&gt;Hey thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose my data looks like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sale (USD)&lt;/TD&gt;&lt;TD&gt;Outlets&lt;/TD&gt;&lt;TD&gt;Outlets Size (Sqft)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to look for is the totalsales/outletsize (USD/sqft). So it'll work by grouping them into their outlets (A/B/C), sum up the total sales, and divide by their respective outlet size. So for outlet A it'll be 25(USD)/500(sqft) and etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if my explanations and examples are not that well. Appreciate all the help I can get.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 02:10:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2125935#M48770</guid>
      <dc:creator>naufal_msr</dc:creator>
      <dc:date>2021-10-11T02:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131020#M48900</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331228" data-lia-user-login="naufal_msr" class="lia-mention lia-mention-user"&gt;naufal_msr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since you have the same row value in the table, recommend that you can create a calculated column like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result = 
DIVIDE (
    CALCULATE (
        SUM ( 'Table'[Sale (USD)] ),
        ALLEXCEPT ( 'Table', 'Table'[Outlets Size (Sqft)] )
    ),
    CALCULATE (
        MIN ( 'Table'[Outlets Size (Sqft)] ),
        ALLEXCEPT ( 'Table', 'Table'[Outlets Size (Sqft)] )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yingjie Li&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 02:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131020#M48900</guid>
      <dc:creator>v-yingjl</dc:creator>
      <dc:date>2021-10-13T02:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131094#M48909</link>
      <description>&lt;P&gt;Hi Yingjie Li,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks this actually helps. But i guess I should mention that I needed this to work with my date range filter. There's also a date column. How do I apply this formula if there are date filter in it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Sale (USD)&lt;/TD&gt;&lt;TD&gt;Outlets&lt;/TD&gt;&lt;TD&gt;Outlets Size (Sqft)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2021&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2021&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 03:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131094#M48909</guid>
      <dc:creator>naufal_msr</dc:creator>
      <dc:date>2021-10-13T03:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing a sum of group by a unique value depending on group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131199#M48913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331228" data-lia-user-login="naufal_msr" class="lia-mention lia-mention-user"&gt;naufal_msr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yingjie Li&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 05:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dividing-a-sum-of-group-by-a-unique-value-depending-on-group/m-p/2131199#M48913</guid>
      <dc:creator>v-yingjl</dc:creator>
      <dc:date>2021-10-13T05:31:10Z</dc:date>
    </item>
  </channel>
</rss>

