<?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: Summing up of manhours based on slicer range selection corresponding to filtered jobs in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637876#M177570</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;, Try using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;Selected_Manhours :=&lt;BR /&gt;VAR SelectedMinDate = MIN('Calendar'[Date])&lt;BR /&gt;VAR SelectedMaxDate = MAX('Calendar'[Date])&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;Bi_alloceffort_data,&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;gt;= SelectedMinDate &amp;amp;&amp;amp;&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;lt;= SelectedMaxDate&lt;BR /&gt;),&lt;BR /&gt;Bi_alloceffort_data[Manhours]&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 08:38:47 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-04-04T08:38:47Z</dc:date>
    <item>
      <title>Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637819#M177569</link>
      <description>&lt;P&gt;In power bi, I need a measure for dax code where when user selects date range from a slicer (calender table), jobs (only the instances where it lies in the selected calender date range) and corresponding manhours (only for the selected calender date range) from my table Bi_ alloceffort_data gets displayed where the REVDATE in same table falls between the user selected range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried the follwomg codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selected_Manhours :=&lt;BR /&gt;VAR SelectedMinDate = MIN('Calendar'[Date])&lt;BR /&gt;VAR SelectedMaxDate = MAX('Calendar'[Date])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Bi_alloceffort_data[Manhours]),&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;gt;= SelectedMinDate &amp;amp;&amp;amp;&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;lt;= SelectedMaxDate&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Selected_Manhours :=&lt;BR /&gt;VAR SelectedMinDate = MIN('Calendar'[Date])&lt;BR /&gt;VAR SelectedMaxDate = MAX('Calendar'[Date])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;Bi_alloceffort_data,&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;gt;= SelectedMinDate &amp;amp;&amp;amp;&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;lt;= SelectedMaxDate&lt;BR /&gt;),&lt;BR /&gt;Bi_alloceffort_data[Manhours]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selected_Manhours :=&lt;BR /&gt;VAR SelectedMinDate = MIN('Calendar'[Date])&lt;BR /&gt;VAR SelectedMaxDate = MAX('Calendar'[Date])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Bi_alloceffort_data[Manhours]),&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;gt;= SelectedMinDate &amp;amp;&amp;amp;&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;lt;= SelectedMaxDate&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But all the solutions are selecting the job based on slcier filter and then summing all the manhours (even ehen they are outside the slicer range) for the all job instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need manhours only for the instance where jobs and manhours are within the selected slicer range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 08:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637819#M177569</guid>
      <dc:creator>ankurbajaj07</dc:creator>
      <dc:date>2025-04-04T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637876#M177570</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;, Try using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;Selected_Manhours :=&lt;BR /&gt;VAR SelectedMinDate = MIN('Calendar'[Date])&lt;BR /&gt;VAR SelectedMaxDate = MAX('Calendar'[Date])&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;Bi_alloceffort_data,&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;gt;= SelectedMinDate &amp;amp;&amp;amp;&lt;BR /&gt;Bi_alloceffort_data[REVDATE] &amp;lt;= SelectedMaxDate&lt;BR /&gt;),&lt;BR /&gt;Bi_alloceffort_data[Manhours]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 08:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637876#M177570</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-04T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637927#M177572</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Its the same as option 2 which i tried but is not filtering manhours based on seletcion. When i am using this measure in table along with jobs, only job are getting filtered in line with slcier and then manhours are getting summed up against that job for all instances of the job removing the slicer criteria.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 09:04:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4637927#M177572</guid>
      <dc:creator>ankurbajaj07</dc:creator>
      <dc:date>2025-04-04T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4638280#M177588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;please check this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected Manhours =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Bi_alloceffort_data&lt;/SPAN&gt;&lt;SPAN&gt;[Manhours]&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;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Bi_alloceffort_data&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Bi_alloceffort_data&lt;/SPAN&gt;&lt;SPAN&gt;[REVDATE]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Calendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;Bi_alloceffort_data&lt;/SPAN&gt;&lt;SPAN&gt;[REVDATE]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Calendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4638280#M177588</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-04-04T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4640186#M177656</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution shared by&amp;nbsp;&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; is technically accurate. The DAX measure below correctly filters the Bi_alloceffort_data table to include only records where REVDATE falls within the selected date range from the calendar slicer:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selected Manhours =
CALCULATE (
    SUM ( Bi_alloceffort_data[Manhours] ),
    FILTER (
        Bi_alloceffort_data,
        Bi_alloceffort_data[REVDATE] &amp;gt;= MIN ( Calendar[Date] ) &amp;amp;&amp;amp;
        Bi_alloceffort_data[REVDATE] &amp;lt;= MAX ( Calendar[Date] )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;This approach ensures that only the relevant job instances and corresponding manhours within the selected date range are included in the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this will resolve your issue, if you need any further assistance, feel free to reach out.&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us Kudos and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 04:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4640186#M177656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-07T04:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4647816#M177901</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 00:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4647816#M177901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-11T00:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4652589#M178109</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/541792" target="_blank"&gt;@ankurbajaj07&lt;/A&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 01:06:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4652589#M178109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-15T01:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up of manhours based on slicer range selection corresponding to filtered jobs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4658303#M178365</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541792" data-lia-user-login="ankurbajaj07" class="lia-mention lia-mention-user"&gt;ankurbajaj07&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 02:25:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-up-of-manhours-based-on-slicer-range-selection/m-p/4658303#M178365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-18T02:25:34Z</dc:date>
    </item>
  </channel>
</rss>

