<?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: Divide Sum of value group by the unique count of the group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390630#M62160</link>
    <description>&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the formula. Actually I mistype the expected calculations. It should be 5 divided by 6963, not&amp;nbsp;6963 divided by 5. But I change the order of the formula provided by you and it works! Keep forgotting how advanced the CALCULATION is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 17:48:52 GMT</pubDate>
    <dc:creator>aglpr</dc:creator>
    <dc:date>2022-03-13T17:48:52Z</dc:date>
    <item>
      <title>Divide Sum of value group by the unique count of the group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390312#M62132</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologize for messy/confusing title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to Power BI and DAX thing, so I have a question about dividing a sum of the number from a group with the count number of the group itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables. Transactions Table (Trx Table) and a table from Google Analytics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this sessions value of the source/medium from the GA table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;Medium&lt;/TD&gt;&lt;TD&gt;Source/Mediun&lt;/TD&gt;&lt;TD&gt;Sessions&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;google&lt;/TD&gt;&lt;TD&gt;cpc&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;6963&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;facebook&lt;/TD&gt;&lt;TD&gt;cpc&lt;/TD&gt;&lt;TD&gt;facebookcpc&lt;/TD&gt;&lt;TD&gt;856&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is 6963 for googlecpc sessions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I want to divide it with the count transactions number of that group in the Transactions Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Source/Medium&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12 03 2022&lt;/TD&gt;&lt;TD&gt;googlecpc&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which in that table there are 5 transactions from googlecpc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the calculations for the date 6 March will be 6963 divided by 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know how to create the DAX for this? I already tried to do research but still found no appropriate formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 06:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390312#M62132</guid>
      <dc:creator>aglpr</dc:creator>
      <dc:date>2022-03-13T06:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Divide Sum of value group by the unique count of the group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390420#M62143</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366577" data-lia-user-login="aglpr" class="lia-mention lia-mention-user"&gt;aglpr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this formular:&lt;/P&gt;&lt;PRE&gt;TomsDivideMeasure = 
DIVIDE ( 
    CALCULATE ( 
        SUM ( TableGA[Sessions] ) 
    ),
    CALCULATE (
        COUNTROWS ( TableTrx )
    )
) &lt;/PRE&gt;&lt;P&gt;Does this get you closer to a solution? &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>Sun, 13 Mar 2022 09:57:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390420#M62143</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-03-13T09:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Divide Sum of value group by the unique count of the group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390630#M62160</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the formula. Actually I mistype the expected calculations. It should be 5 divided by 6963, not&amp;nbsp;6963 divided by 5. But I change the order of the formula provided by you and it works! Keep forgotting how advanced the CALCULATION is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 17:48:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-Sum-of-value-group-by-the-unique-count-of-the-group/m-p/2390630#M62160</guid>
      <dc:creator>aglpr</dc:creator>
      <dc:date>2022-03-13T17:48:52Z</dc:date>
    </item>
  </channel>
</rss>

