<?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: Data Aggregation issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715416#M180611</link>
    <description>&lt;P&gt;This solution worked as well. Thanks to both of you.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jun 2025 14:43:01 GMT</pubDate>
    <dc:creator>Flash9883</dc:creator>
    <dc:date>2025-06-01T14:43:01Z</dc:date>
    <item>
      <title>Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715132#M180599</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set that row calculations are correct but column total is not. How can i fix the aggregation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The underlined 22 is suppose to be a sum. The issues that could be happenning is im filtering by a REG and WRKHM on the rpt date column. if payroll changes occur then multiples might occur on same day. The goal is to figure out how many days an employee has worked in a given time period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula im using to get the result in the picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&g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t;/SPAN&gt;&lt;SPAN&gt;[UniqueCount]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 31 May 2025 19:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715132#M180599</guid>
      <dc:creator>Flash9883</dc:creator>
      <dc:date>2025-05-31T19:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715257#M180607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1284318" data-lia-user-login="Flash9883" class="lia-mention lia-mention-user"&gt;Flash9883&lt;/a&gt;&amp;nbsp;please try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Days Worked =&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES(TRC_Table[EmployeeID]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(TRC_Table[Date]),&lt;BR /&gt;TRC_Table[TRC] IN {"REG", "WRKHM"}&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 06:38:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715257#M180607</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-06-01T06:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715258#M180608</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1284318" data-lia-user-login="Flash9883" class="lia-mention lia-mention-user"&gt;Flash9883&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on the limited information you have shared here, I guess you need to include the employee number in the logic as each row belongs to an employee and you need to het the aggregate in the same manner, try this, replace the employee number in the with your correct column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUMX (
    SUMMARIZE (
        FILTER ( TRC_Table, TRC_Table[TRC] IN { "REG", "WRKHM" } ),
        TRC_Table[EmployeeNo], 
        TRC_Table[Date],
        "UniqueCount", DISTINCTCOUNT ( TRC_Table[Date] )
    ),
    [UniqueCount]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 06:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715258#M180608</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2025-06-01T06:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715415#M180610</link>
      <description>&lt;P&gt;Thanks for the assist this solution worked.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 14:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715415#M180610</guid>
      <dc:creator>Flash9883</dc:creator>
      <dc:date>2025-06-01T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715416#M180611</link>
      <description>&lt;P&gt;This solution worked as well. Thanks to both of you.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 14:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4715416#M180611</guid>
      <dc:creator>Flash9883</dc:creator>
      <dc:date>2025-06-01T14:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4716052#M180636</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1284318" data-lia-user-login="Flash9883" class="lia-mention lia-mention-user"&gt;Flash9883&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If your issue is resolved, it would be great if you could mark the response as the&lt;STRONG&gt; Accepted Solution&lt;/STRONG&gt;. This helps others in the community find answers more easily when they face similar challenges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We really appreciate &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp; &amp;amp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp; your clear explanation and the valuable contributions from community members.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have more questions or need further support, don’t hesitate to post again the community is always here to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yugandhar&lt;/P&gt;
&lt;P&gt;Community Support Team.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 05:42:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4716052#M180636</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-06-02T05:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Aggregation issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4721470#M180828</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1284318" data-lia-user-login="Flash9883" class="lia-mention lia-mention-user"&gt;Flash9883&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="75" data-end="249"&gt;Please consider marking it as the &lt;STRONG data-start="109" data-end="130"&gt;Accepted Solution&lt;/STRONG&gt; if it helped resolve your issue. It will be helpful for others in the community who might be facing a similar problem.&lt;/P&gt;
&lt;P data-start="75" data-end="249"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="251" data-end="284" data-is-last-node="" data-is-only-node=""&gt;Thank you for your understanding.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 12:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Aggregation-issue/m-p/4721470#M180828</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-06-05T12:46:13Z</dc:date>
    </item>
  </channel>
</rss>

