<?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: Count Operating Days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2373002#M60980</link>
    <description>&lt;P&gt;You could create a calculated column to look at your packages moved and if &amp;gt;15k set to true, else set to false.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then you could use it to filter your data by setting it to true. Or you could create a measure to count days where it is true. Depends what you need it for!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 15:22:17 GMT</pubDate>
    <dc:creator>Syk</dc:creator>
    <dc:date>2022-03-03T15:22:17Z</dc:date>
    <item>
      <title>Count Operating Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2372862#M60975</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you're doing great! I have a question. I'm using a simple model that const of two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FacSales&lt;/LI&gt;&lt;LI&gt;DimCalendar&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My company move several packages in a daily basis, however sometimes thare are some pendings shipmets that need to be done on saturdays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can i count operating days of a certain month based on packages quantities? For instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;February:&lt;/P&gt;&lt;P&gt;Days: 28&lt;/P&gt;&lt;P&gt;Days with movements: 25 (this number i obtained using Distincount('FactSales'[Date]))&lt;/P&gt;&lt;P&gt;Ops Days: 20 (this is my objective discounting the days in which packages less than or equal to 15000 are moved. In other words I'm trying to get the business days as the days go by. I think doing it this way is better as it would detect the holidays )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As additional information, there is a threshold in terms of packages. &lt;SPAN&gt;On a Saturday they will never exceed 15,000 packages sent, while on weekdays this value exceeds 50,000 per day)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Diego V.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2372862#M60975</guid>
      <dc:creator>Dvilches_</dc:creator>
      <dc:date>2022-03-03T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count Operating Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2373002#M60980</link>
      <description>&lt;P&gt;You could create a calculated column to look at your packages moved and if &amp;gt;15k set to true, else set to false.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then you could use it to filter your data by setting it to true. Or you could create a measure to count days where it is true. Depends what you need it for!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:22:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2373002#M60980</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2022-03-03T15:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count Operating Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2373012#M60981</link>
      <description>&lt;P&gt;Hey Syk,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be useful if you grouped the data, but i would lose granularity.. In this case the data comes for shiptment ID. In average, each shipmet have 1-3 packages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2373012#M60981</guid>
      <dc:creator>Dvilches_</dc:creator>
      <dc:date>2022-03-03T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count Operating Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2380311#M61478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="186136" data-lia-user-login="Dvilches_" class="lia-mention lia-mention-user"&gt;Dvilches_&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count days if the day is greater then 15,000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Count operating days = COUNTROWS(filter(SUMMARIZE('FacTable',[Date],"sum",SUM(FacTable[packages])),[sum]&amp;gt;15000)) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Result:&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;&lt;SPAN&gt;Pbix file in the end you can refer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Mar 2022 05:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2380311#M61478</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-03-08T05:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count Operating Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2381305#M61550</link>
      <description>&lt;P&gt;You tha best! Working fine. Power Query i think that i handle it quite well, but currently i'm in the DAX journey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and this solution!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 12:54:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Operating-Days/m-p/2381305#M61550</guid>
      <dc:creator>Dvilches_</dc:creator>
      <dc:date>2022-03-08T12:54:22Z</dc:date>
    </item>
  </channel>
</rss>

