<?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: CREATE SUMMARY MEASURE FROM A TABLE ALSO USING AVERAGE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1142925#M17154</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still on this subject, what measure can I do if I want a column to show the total of the "SUPPLIER_RESULT" repeatedly in each row?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of a ALL_SELECTED but since it's a measure, I can't reference it.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 10:53:40 GMT</pubDate>
    <dc:creator>Caldasls15_</dc:creator>
    <dc:date>2020-06-05T10:53:40Z</dc:date>
    <item>
      <title>CREATE SUMMARY MEASURE FROM A TABLE ALSO USING AVERAGE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1074301#M15051</link>
      <description>&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need a measure that can do the following&amp;nbsp;circumstances:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - First I need to calculate the average &lt;STRONG&gt;monthly&amp;nbsp;&lt;/STRONG&gt;sales per user as shown in the following picture. Dividing the total revenue for &lt;STRONG&gt;n&lt;/STRONG&gt; months that the specified user had revenue. Except that&lt;STRONG&gt; I need that also considering supplier ID&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;- Revenue is the sum aggregation for the REVENUE column.&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;2 - I need the same calculation as the previous circumstance but now only considering supplier (an AllExcept should do this part).&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;3 - The final result should be as shown in the following picture:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "USER_RESULT" would be the result of the n.1 circumstance, and the "SUPLIER_RESULT" would be the n.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that by using &lt;STRONG&gt;AVERAGE&lt;/STRONG&gt; and &lt;STRONG&gt;SUMMARY&lt;/STRONG&gt; one can probably do this very easily, but I haven't found a way to solve this problem yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a measure to display the final result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 01:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1074301#M15051</guid>
      <dc:creator>Caldasls15_</dc:creator>
      <dc:date>2020-05-06T01:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE SUMMARY MEASURE FROM A TABLE ALSO USING AVERAGE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1077500#M15135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="220652" data-lia-user-login="Caldasls15_" class="lia-mention lia-mention-user"&gt;Caldasls15_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can create a measure to get the average revenue based on the supplier, then drag the fields &lt;STRONG&gt;USER&lt;/STRONG&gt;,&lt;STRONG&gt;SUPPLIER_ID&lt;/STRONG&gt;,&lt;STRONG&gt;REVENUE&lt;/STRONG&gt; and &lt;STRONG&gt;new created measure&lt;/STRONG&gt; onto &lt;STRONG&gt;Table&lt;/STRONG&gt; visual just like below screen shot.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUPPLIER_RESULT = 
VAR countofSMonth =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[MONTH] ),
        ALLEXCEPT ( 'Table', 'Table'[SUPPLIER_ID] )
    )
VAR RevenueofpSupplier =
    CALCULATE (
        SUM ( 'Table'[REVENUE] ),
        ALLEXCEPT ( 'Table', 'Table'[SUPPLIER_ID] )
    )
RETURN
    DIVIDE ( RevenueofpSupplier, countofSMonth )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Rena&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 23:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1077500#M15135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T23:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE SUMMARY MEASURE FROM A TABLE ALSO USING AVERAGE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1142925#M17154</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still on this subject, what measure can I do if I want a column to show the total of the "SUPPLIER_RESULT" repeatedly in each row?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of a ALL_SELECTED but since it's a measure, I can't reference it.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 10:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CREATE-SUMMARY-MEASURE-FROM-A-TABLE-ALSO-USING-AVERAGE/m-p/1142925#M17154</guid>
      <dc:creator>Caldasls15_</dc:creator>
      <dc:date>2020-06-05T10:53:40Z</dc:date>
    </item>
  </channel>
</rss>

