<?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: Calculating working days to date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035220#M45653</link>
    <description>&lt;P&gt;Thanks Denis, but that has not worked, I will post up some of the data later&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 14:03:19 GMT</pubDate>
    <dc:creator>James_Ma</dc:creator>
    <dc:date>2021-08-24T14:03:19Z</dc:date>
    <item>
      <title>Calculating working days to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035103#M45649</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding how to count he number of working days to todays date?&lt;/P&gt;&lt;P&gt;I have a mode where&amp;nbsp; I am using calendar year, calendar month and then counting the "Is working day" to show that between 2019 and 2021 there would be 760 working days (UK).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As 2021 is not yet complete, is it possible to count the working days until today?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on another calcualtion to divide the number of working days by the number of days people have worked to work on an efficiency value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 13:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035103#M45649</guid>
      <dc:creator>James_Ma</dc:creator>
      <dc:date>2021-08-24T13:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating working days to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035114#M45650</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="276291" data-lia-user-login="James_Ma" class="lia-mention lia-mention-user"&gt;James_Ma&lt;/a&gt;&amp;nbsp;If you have a calendar table or a VAR with your calendar table in it, just use FILTER for [Date] &amp;lt;= TODAY()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that isn't helpful.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 13:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035114#M45650</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-24T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating working days to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035118#M45651</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="276291" data-lia-user-login="James_Ma" class="lia-mention lia-mention-user"&gt;James_Ma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that should be possible. You can just limit the filter context for dates until today.&lt;/P&gt;&lt;P&gt;Try an approach like that:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Working days until today =
CALCULATE(
    COUNTROWS( DateTable ),
    DateTable[Is working day] = 1,
    DateTable[Date] &amp;lt;= TODAY()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;If you need any help please let me know.&lt;/DIV&gt;&lt;DIV&gt;If I answered your question I would be happy if you could mark my post as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and give it a thumbs up &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best regards&lt;/DIV&gt;&lt;DIV&gt;Denis&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Blog: &lt;A title="Click here!" href="https://whatthefact.bi/?utm_source=powerbicommunity&amp;amp;utm_medium=link&amp;amp;utm_campaign=forum" target="_blank" rel="noopener"&gt;&lt;U&gt;WhatTheFact.bi&lt;/U&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;Follow me: &lt;A title="Click here!" href="https://twitter.com/DenSelimovic" target="_blank" rel="noopener"&gt;&lt;U&gt;twitter.com/DenSelimovic&lt;/U&gt;&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2021 13:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035118#M45651</guid>
      <dc:creator>selimovd</dc:creator>
      <dc:date>2021-08-24T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating working days to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035220#M45653</link>
      <description>&lt;P&gt;Thanks Denis, but that has not worked, I will post up some of the data later&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 14:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2035220#M45653</guid>
      <dc:creator>James_Ma</dc:creator>
      <dc:date>2021-08-24T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating working days to date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2037819#M45708</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did infact work, however it counts the working days but I tcannot be filtered by the Calendar year?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 13:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-working-days-to-date/m-p/2037819#M45708</guid>
      <dc:creator>James_Ma</dc:creator>
      <dc:date>2021-08-25T13:28:34Z</dc:date>
    </item>
  </channel>
</rss>

