<?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: How to get average per person from two measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838548#M39196</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have re-written to your above suggestion but still not able to arrive at the expected individual averages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As pictured, the £24.81 average is correct but the minute i add a table and try to do it by user, the averages for each user are substantially lower.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 12:36:29 GMT</pubDate>
    <dc:creator>sjacksonlincs</dc:creator>
    <dc:date>2021-05-12T12:36:29Z</dc:date>
    <item>
      <title>How to get average per person from two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838427#M39187</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am relatively new to Power BI but am struggling with something that seems should be fairly straight forward...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two imported tables, one for 'Calls' and the other for 'Cash'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the average cash collection by user which should be the total cash divided by number of calls taken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my cash table i have the measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SumOfCash = CALCULATE(SUM(Cash[SumOfAmount £]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;On my calls table I have the measure:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SumOfCalls = CALCULATE(SUM(Telephony[Accepted]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now i want to create a new measure that takes the cash measure and divides it by the calls measure.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have tried this with:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AvgCashPerCall = CALCULATE(SUM(Cash[SumOfAmount £])/SUM(Telephony[Accepted])) which gives be an overall average total (which is correct) but when i create a table and in the users, the average per user shows as a very low decimilised number.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advise me what i'm doing wrong please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 11:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838427#M39187</guid>
      <dc:creator>sjacksonlincs</dc:creator>
      <dc:date>2021-05-12T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get average per person from two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838463#M39188</link>
      <description>&lt;P&gt;Your measure should be written as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[AvgCashPerCall] = divide( [SumOfCash], [SumOfCalls] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;since code duplication is a &lt;STRONG&gt;the worst thing that can happen in programming.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, to tell you whether this calculation is correct for any slice of your data... well, that requires to know your data, the model and the business requirements. It's not possible to say if that's correct right now since what DAX calculates depends on the underlying tables and the relationships between them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 11:48:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838463#M39188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-12T11:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get average per person from two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838548#M39196</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have re-written to your above suggestion but still not able to arrive at the expected individual averages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As pictured, the £24.81 average is correct but the minute i add a table and try to do it by user, the averages for each user are substantially lower.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-average-per-person-from-two-measures/m-p/1838548#M39196</guid>
      <dc:creator>sjacksonlincs</dc:creator>
      <dc:date>2021-05-12T12:36:29Z</dc:date>
    </item>
  </channel>
</rss>

