<?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 The total is coming incorrect. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237134#M119018</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480607" data-lia-user-login="member" class="lia-mention lia-mention-user"&gt;member&lt;/a&gt;, I am using the below measure to divide the sum i.e. _FTE by _countRows. The VAR_FTE gives me 9.85. VAR_countRows gives me 10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to see the total of VAR_divFTE as 2.85 i.e. 0.85+1+1.&amp;nbsp; However, it is dividing (=9.85/10) and giving me total as 0.985.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can someone please suggest what changes needs to be done in VAR_divFTE to get the total of 2.85&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE : I am using Power BI dataset as a source here and cannot resolve this issue by creating calculated column, writing a DAX meausre is the only option.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 07:23:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-16T07:23:20Z</dc:date>
    <item>
      <title>The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237134#M119018</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480607" data-lia-user-login="member" class="lia-mention lia-mention-user"&gt;member&lt;/a&gt;, I am using the below measure to divide the sum i.e. _FTE by _countRows. The VAR_FTE gives me 9.85. VAR_countRows gives me 10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to see the total of VAR_divFTE as 2.85 i.e. 0.85+1+1.&amp;nbsp; However, it is dividing (=9.85/10) and giving me total as 0.985.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can someone please suggest what changes needs to be done in VAR_divFTE to get the total of 2.85&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE : I am using Power BI dataset as a source here and cannot resolve this issue by creating calculated column, writing a DAX meausre is the only option.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237134#M119018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-16T07:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237168#M119019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Pos FTE Correct Total =&lt;BR /&gt;SUMX (&lt;/P&gt;
&lt;P&gt;VALUES ( 'Table'[Position] ),&lt;/P&gt;
&lt;P&gt;[Pos FTE]&amp;nbsp;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237168#M119019</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-16T07:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237258#M119031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where exactly are you suggesting to make this change?&lt;/P&gt;&lt;P&gt;I am putting the text version of the above DAX to make it easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pos FTE = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_countRows&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Position and People Establishment'&lt;/SPAN&gt;&lt;SPAN&gt;[Position]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_FTE&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Position and People Establishment'&lt;/SPAN&gt;&lt;SPAN&gt;[Establishment Count]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_divFTE&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_countRows&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_FTE&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_countRows&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;_FTE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;_divFTE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 May 2023 08:22:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237258#M119031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-16T08:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237854#M119058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apologies for the late reply. Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Pos FTE =
SUMX (
    VALUES ( 'Position and People Establishment'[Position] ),
    VAR _Table =
        CALCULATETABLE ( 'Position and People Establishment' )
    VAR _CountRows =
        COUNTROWS ( 'Position and People Establishment' )
    VAR _FTE =
        SUMX ( _Table, 'Position and People Establishment'[Establishment Count] )
    VAR _DivFTE =
        DIVIDE ( _FTE, _CountRows )
    RETURN
        _DivFTE
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 May 2023 12:30:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3237854#M119058</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-16T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3239007#M119122</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I tried using the above DAX however, it is giving the same total count of 0.985&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 23:24:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3239007#M119122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-16T23:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3239324#M119141</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should work based on your description and presented visual. Unless both have been over simplified.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 03:33:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3239324#M119141</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-17T03:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: The total is coming incorrect.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3311410#M123804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;divide_pos =&lt;BR /&gt;SUMX ( VALUES ( 'Table'[Position] ), DIVIDE ( [Sum_Pos], [Cnt PoS] ) )&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 09:15:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-total-is-coming-incorrect/m-p/3311410#M123804</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-02T09:15:11Z</dc:date>
    </item>
  </channel>
</rss>

