<?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: Number of days w/i qtrs for a period of time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4609194#M176442</link>
    <description>&lt;P&gt;That did it. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 18:43:52 GMT</pubDate>
    <dc:creator>REL</dc:creator>
    <dc:date>2025-03-13T18:43:52Z</dc:date>
    <item>
      <title>Number of days w/i qtrs for a period of time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4605945#M176318</link>
      <description>&lt;P&gt;I have a table of events with a start date and end date for each event. The start end and dates don't necessarily coincide with the start or end of months,quarters or years. I need to create a report with the event and the number of days, by year/qtr for the period of the event. I can use DateDiff to get the totals number of days or quarters between the start and end dates, but havent seen how to get the number of days, by qtr for the start to end date of the event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 23:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4605945#M176318</guid>
      <dc:creator>REL</dc:creator>
      <dc:date>2025-03-11T23:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Number of days w/i qtrs for a period of time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4606008#M176322</link>
      <description>&lt;P&gt;You use INTERSECT() for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you like more help please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 01:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4606008#M176322</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-12T01:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Number of days w/i qtrs for a period of time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4607045#M176360</link>
      <description>&lt;P&gt;You can get the number of days in a period by creating a new measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Event days =
VAR StartDate =
    SELECTEDVALUE ( 'Events'[Start Date] )
VAR EndDate =
    SELECTEDVALUE ( 'Events'[End Date] )
VAR Result =
    CALCULATE (
        COUNTROWS ( 'Date' ),
        KEEPFILTERS ( DATESBETWEEN ( 'Date'[Date], StartDate, EndDate ) )
    )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;Put that in a matrix with your events and any column from the date table.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 13:48:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4607045#M176360</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-03-12T13:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Number of days w/i qtrs for a period of time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4609194#M176442</link>
      <description>&lt;P&gt;That did it. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 18:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-days-w-i-qtrs-for-a-period-of-time/m-p/4609194#M176442</guid>
      <dc:creator>REL</dc:creator>
      <dc:date>2025-03-13T18:43:52Z</dc:date>
    </item>
  </channel>
</rss>

