<?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 Running Total of working days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764110#M85792</link>
    <description>&lt;P&gt;Hello BI-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m struggling to get a running total of working days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Date Table that is already filtered based on working days. So only dates, which are a working date, are visible.&lt;/P&gt;&lt;P&gt;I even have a specific column in my date table that shows a 1 if it is a working date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let´s say we take todays date, i need the following result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;Anyonw who knows how to solve this???&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 10:51:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-13T10:51:35Z</dc:date>
    <item>
      <title>Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764110#M85792</link>
      <description>&lt;P&gt;Hello BI-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m struggling to get a running total of working days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Date Table that is already filtered based on working days. So only dates, which are a working date, are visible.&lt;/P&gt;&lt;P&gt;I even have a specific column in my date table that shows a 1 if it is a working date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let´s say we take todays date, i need the following result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;Anyonw who knows how to solve this???&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764110#M85792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T10:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764155#M85797</link>
      <description>&lt;P&gt;I think this should do it&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Running total working days =
VAR startDate =
    MIN ( 'Date'[Date] )
VAR endDate =
    MAX ( 'Date'[Date] )
VAR result =
    CALCULATE (
        SUM ( 'Date'[Is working day] ),
        DATESBETWEEN ( 'Date'[Date], startDate, endDate )
    )
RETURN
    result
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:04:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764155#M85797</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-13T11:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764179#M85799</link>
      <description>&lt;P&gt;Thanks for your Reply johnt75!&lt;BR /&gt;&lt;BR /&gt;Unfortunatel it dowsn´t work with my file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:15:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764179#M85799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764194#M85801</link>
      <description>&lt;P&gt;On the visual are you using the date column from your date table, or are you using a column from another table ? The way I had envisaged this working is that you would use the date column from your date table which would be set up with a one-to-many relationship to any other tables&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764194#M85801</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-13T11:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764206#M85802</link>
      <description>&lt;P&gt;Iam using my date table to set up a slicer and everything else.&lt;BR /&gt;&lt;BR /&gt;See attached the result from your measure. It doesn´t count them properly...&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764206#M85802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T11:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764210#M85803</link>
      <description>&lt;P&gt;Try replacing&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MIN('Date table'[Datum])&lt;/LI-CODE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE( MIN('Date table'[Datum]), ALLSELECTED('Date table'))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764210#M85803</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-13T11:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764228#M85805</link>
      <description>&lt;P&gt;I just figured it out with a little bit of a workaround!&lt;BR /&gt;&lt;BR /&gt;I tried to replace the measures like you mentioned before, but see attached the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pre Rolling Working Days = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&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;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Datum]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Working Day]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pre Rolling Working Days MTD = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOTALMTD&lt;/SPAN&gt;&lt;SPAN&gt;([Pre Rolling Working Days], 'Date Table'[Datum])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much for your response anyway! It was the needed push to get the right result&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:41:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-working-days/m-p/2764228#M85805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T11:41:12Z</dc:date>
    </item>
  </channel>
</rss>

