<?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: To get average in the Total row, instead of sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3733654#M145513</link>
    <description>&lt;P&gt;This is giving me blanks. Please advise on something else&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 13:33:14 GMT</pubDate>
    <dc:creator>SuprajaChennuru</dc:creator>
    <dc:date>2024-02-29T13:33:14Z</dc:date>
    <item>
      <title>To get average in the Total row, instead of sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3731173#M145406</link>
      <description>&lt;P&gt;I have a matrix visual with 4 levels and the total row should show percentage Average of Score&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculations Used :&lt;/P&gt;&lt;P&gt;1. DIV = Quantity/Target Quantity&lt;/P&gt;&lt;P&gt;2. Score = if DIV &amp;gt;1 then 1 else DIV&lt;/P&gt;&lt;P&gt;3. Score % = % of Score&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the AverageX&amp;nbsp; and AverageX with HASONE functions, but, my results do not work with neither of them.&amp;nbsp;&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, 28 Feb 2024 16:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3731173#M145406</guid>
      <dc:creator>SuprajaChennuru</dc:creator>
      <dc:date>2024-02-28T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: To get average in the Total row, instead of sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3731291#M145416</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503004" data-lia-user-login="SuprajaChennuru" class="lia-mention lia-mention-user"&gt;SuprajaChennuru&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it appears that you are doiing your division at a row level, I decided to create a calculated column and then find an average of that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated Column&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_DIV =
VAR _Div =
    DIVIDE( 
        [Quantity], 
        [Target Quantity]
    )
VAR _Logic = 
    IF(
        _Div &amp;gt; 1,
        1,
        _Div
    )
RETURN
    _Logic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DIV = AVERAGE( Table1[_DIV] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnF6rI36HAVkhYUSJ5Htbu6o_ZbJeg?e=dlmPZy" target="_blank"&gt;To get average in the Total row instead of sum.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3731291#M145416</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-02-28T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: To get average in the Total row, instead of sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3733654#M145513</link>
      <description>&lt;P&gt;This is giving me blanks. Please advise on something else&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 13:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3733654#M145513</guid>
      <dc:creator>SuprajaChennuru</dc:creator>
      <dc:date>2024-02-29T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: To get average in the Total row, instead of sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3734217#M145542</link>
      <description>&lt;P&gt;Can you create a &lt;STRONG&gt;pbix&lt;/STRONG&gt; for me to work with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Please show the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the sample data you provided.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Please &lt;STRONG&gt;explain&lt;/STRONG&gt; how you would expect to get from step 1 to 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) If possible, please show your past attempts at a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 17:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-get-average-in-the-Total-row-instead-of-sum/m-p/3734217#M145542</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-02-29T17:11:28Z</dc:date>
    </item>
  </channel>
</rss>

