<?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: Excluding weekend days from  formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953606#M98026</link>
    <description>&lt;P&gt;Hi Shreyamukkawar,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a column in my dimdate that shows me whether a day is a weekend day or a weekday, so thats not the problem. The problem is to add this value as a filltervalue in this part of the formula:&amp;nbsp;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dimdate'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i need to add something like ,filter(dimdate, 'dimdate'[isweekend] = "false"), but unfortenately thats not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 09:46:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-07T09:46:12Z</dc:date>
    <item>
      <title>Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953531#M98021</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi all,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i'm trying to create a measure which shows me the % illness in a month/year, etc. I created the following measure which shows me the days that resources have been ill (based on start and end date of the notification). Underlying measure shows me the days ill per resource in a specific period incl. weekend days.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Days ill = &lt;/SPAN&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(Resource&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dimdate'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[# Ill]&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But unfortenately I would like to know the days will excluding weekend days. I do have a column in the dimdate table which shows me true or false for "IsWeekend. "But i dont know how to add that in the formula above.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hopefully Somebody can help me? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953531#M98021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953580#M98024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try by using NETWORKDAYS dax.&lt;/P&gt;&lt;P&gt;It will help you to exclude weekend between two dates.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NETWORKDAYS ( &lt;/SPAN&gt;&lt;SPAN class=""&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN class=""&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;28&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN class=""&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN class=""&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;30&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shreya&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Thumbs-Up icon&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;if you like this reply&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953580#M98024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953606#M98026</link>
      <description>&lt;P&gt;Hi Shreyamukkawar,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a column in my dimdate that shows me whether a day is a weekend day or a weekday, so thats not the problem. The problem is to add this value as a filltervalue in this part of the formula:&amp;nbsp;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dimdate'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i need to add something like ,filter(dimdate, 'dimdate'[isweekend] = "false"), but unfortenately thats not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953606#M98026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953619#M98027</link>
      <description>&lt;P&gt;Try using this.&lt;/P&gt;&lt;P&gt;Sumx(&lt;SPAN&gt;filter(dimdate, 'dimdate'[isweekend] = "false");VALUES('Dimdate'[Date]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 09:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953619#M98027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953658#M98032</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tried that as well, but gives me an error as well&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;# Days ill = &lt;/SPAN&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;resource&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dimdatum&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'DimDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[Is_Weekend]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"false"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DimDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[Datum]&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;[# Ill]&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error is too many arguments were passed to the sumx function. Maximum argument count for function is 2.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2953658#M98032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2955857#M98193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a &lt;STRONG&gt;calculated column&amp;nbsp;&lt;/STRONG&gt;as below in the table '&lt;STRONG&gt;resource&lt;/STRONG&gt;' to get the number of working days:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# Days ill =
CALCULATE (
    COUNTROWS ( 'DimDatum' ),
    FILTER ( 'DimDatum', 'DimDatum'[Is_Weekend] = "false" ),
    DATESBETWEEN ( 'DimDatum'[Date], 'resource'[Start Date], 'resource'[End Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&amp;nbsp;in your table '&lt;STRONG&gt;resource&lt;/STRONG&gt;' (&lt;STRONG&gt;&lt;I&gt;exclude&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;sensitive&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;I&gt;data&lt;/I&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;It is better&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;if you can share a&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;simplified&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 07:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/2955857#M98193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-08T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding weekend days from  formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/3040052#M104223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keen to know if you managed to solve this??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar issue where i'm calculating sickness absence per month based on start/end dates which span months. I've got a nice measure which works out the days someone is absent in each month, but it includes weekends and i can't work out how to exclude them!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like you i've also created a weekend true/false in my date table but can't work out how to filter against it using the sumx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nightmare!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 11:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excluding-weekend-days-from-formula/m-p/3040052#M104223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T11:53:33Z</dc:date>
    </item>
  </channel>
</rss>

