<?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: DAX to subract an amount for only one person? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2905103#M94760</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284783" data-lia-user-login="gingerclaire" class="lia-mention lia-mention-user"&gt;gingerclaire&lt;/a&gt; , for the workday of the month you can use networkdays and customize it as per each person&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_blank"&gt;https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 02:19:17 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-15T02:19:17Z</dc:date>
    <item>
      <title>DAX to subract an amount for only one person?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2903856#M94673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a Power BI report to work out how many working days each person has in a month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to get to the stage where I have subtracted weekend, sick leave, holiday and bank holidays - but I have one person who does not work mondays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I am using the following measure to count total working days:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(A-B) Working days minus days out = (&lt;/SPAN&gt;&lt;SPAN&gt;'Date table'&lt;/SPAN&gt;&lt;SPAN&gt;[A - Total working days]&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&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;Leave&lt;/SPAN&gt;&lt;SPAN&gt;[B - Total working days out of action]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a separate measure to count the number of Mondays - but I cannot figure out how to subtract the [No. of Mondays] from just her total? Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show in a table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Total working days in month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Person A&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Person B (who doesn't work mondays&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 14 Nov 2022 14:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2903856#M94673</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-14T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to subract an amount for only one person?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2905103#M94760</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284783" data-lia-user-login="gingerclaire" class="lia-mention lia-mention-user"&gt;gingerclaire&lt;/a&gt; , for the workday of the month you can use networkdays and customize it as per each person&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_blank"&gt;https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 02:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2905103#M94760</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-15T02:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to subract an amount for only one person?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2905469#M94778</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284783" data-lia-user-login="gingerclaire" class="lia-mention lia-mention-user"&gt;gingerclaire&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you just want to subtract the [No. of Mondays] from just Person B total, p&lt;/SPAN&gt;lease add a new measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result1 =
IF (
    MAX ( 'Table'[Name] ) = "Person B",
    // MAX ( 'Table'[Name] ) IN { "Person B", "Person xx" },
    [Total working days in month],
    [Total working days in month] - [No. of Mondays]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 06:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2905469#M94778</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-11-15T06:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to subract an amount for only one person?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2906977#M94875</link>
      <description>&lt;P&gt;This worked - thank you so much! Only problem is I can't get the totals to show the 'correct' amount in the table (common measures issue but I don't quite understand how to fix it no matter how much time I spend reading about it!)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:25:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-subract-an-amount-for-only-one-person/m-p/2906977#M94875</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-15T15:25:55Z</dc:date>
    </item>
  </channel>
</rss>

