<?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: My brain doesn't function, help! Count overdues in a month. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294475#M170443</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp; Try below code to create a calculated column in Report table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OverdueTickets = 
CALCULATE(
    COUNTROWS(IW38),
    IW38[Date created] &amp;lt;= Report[Last day],
    IW38[Duedate] &amp;lt;= Report[Last day],
    IW38[Duedate] &amp;gt;= Report[First day],
    ISBLANK(IW38[Date finished]),
    IW38[Duedate] &amp;lt; TODAY()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering you have relation between Report and IW#* table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please mark this is a solution and a kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 04:38:09 GMT</pubDate>
    <dc:creator>shafiz_p</dc:creator>
    <dc:date>2024-11-21T04:38:09Z</dc:date>
    <item>
      <title>My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294159#M170427</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My brain stopped working, can you help me figure this out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a tabel with a start and finsih date per month (So per row a First day and a Last day of the month) and I want to add a calculated column to count the number of tickets in another table that were OPEN and OVERDUE in &lt;EM&gt;the month of the period from that row&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But is it possible to count in the fact if the order was open and overdue that month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So many variables right..&lt;BR /&gt;&lt;BR /&gt;The column where I count it in&lt;BR /&gt;Report[First day]&lt;/P&gt;&lt;P&gt;Report[Last day]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I also have the:&lt;/P&gt;&lt;P&gt;IW38[Date created]&lt;/P&gt;&lt;P&gt;IW38[Date finsihed]&lt;/P&gt;&lt;P&gt;IW38[Duedate]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant share a PBIX file, but can someone tell me if it is possible what I am trying to do here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 00:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294159#M170427</guid>
      <dc:creator>IAM</dc:creator>
      <dc:date>2024-11-21T00:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294191#M170428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&amp;nbsp;step-by-step approach to achieve this:&lt;/P&gt;
&lt;P&gt;Create a Calculated Column for Overdue Tickets: First, you need to determine if a ticket is overdue. You can create a calculated column in your IW38 table to check if the ticket is overdue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IW38[IsOverdue] = IF(IW38[Date finished] &amp;gt; IW38[Duedate], 1, 0)&lt;BR /&gt;Create a Calculated Column for Open Tickets: Next, you need to determine if a ticket was open during the month. You can create a calculated column in your IW38 table to check if the ticket was open during the month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IW38[IsOpenDuringMonth] = &lt;BR /&gt;IF(&lt;BR /&gt;AND(&lt;BR /&gt;IW38[Date created] &amp;lt;= Report[Last day],&lt;BR /&gt;OR(&lt;BR /&gt;ISBLANK(IW38[Date finished]),&lt;BR /&gt;IW38[Date finished] &amp;gt;= Report[First day]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;Count Overdue and Open Tickets: Now, you can create a calculated column in your Report table to count the number of tickets that were both open and overdue during the month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Report[OverdueOpenTickets] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(IW38),&lt;BR /&gt;FILTER(&lt;BR /&gt;IW38,&lt;BR /&gt;IW38[IsOverdue] = 1 &amp;amp;&amp;amp;&lt;BR /&gt;IW38[IsOpenDuringMonth] = 1 &amp;amp;&amp;amp;&lt;BR /&gt;IW38[Date created] &amp;lt;= Report[Last day] &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(IW38[Date finished]) || IW38[Date finished] &amp;gt;= Report[First day])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;This approach should help you count the number of tickets that were open and overdue during the specified month. Make sure to adjust the column names and table names according to your actual data model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;STRONG&gt; helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt;|&lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt;|&lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;|&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 01:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294191#M170428</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2024-11-21T01:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294321#M170430</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I make the calculated column in IW38, I can only give the 0 or 1 for one specific month, right?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 02:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294321#M170430</guid>
      <dc:creator>IAM</dc:creator>
      <dc:date>2024-11-21T02:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294462#M170441</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated Column&lt;/P&gt;&lt;PRE&gt;OpenAndOverdueCount = &lt;BR /&gt;VAR StartDate = Report[First day]&lt;BR /&gt;VAR EndDate = Report[Last day]&lt;BR /&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;IW38,&lt;BR /&gt;IW38[Date created] &amp;lt;= EndDate &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(IW38[Date finished]) || IW38[Date finished] &amp;gt;= StartDate) &amp;amp;&amp;amp;&lt;BR /&gt;IW38[Duedate] &amp;lt; EndDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":love_letter:"&gt;💌&lt;/span&gt;If this helped, a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; or Solution mark would be great! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;BR /&gt;Kedar&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 04:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294462#M170441</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-11-21T04:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294475#M170443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp; Try below code to create a calculated column in Report table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OverdueTickets = 
CALCULATE(
    COUNTROWS(IW38),
    IW38[Date created] &amp;lt;= Report[Last day],
    IW38[Duedate] &amp;lt;= Report[Last day],
    IW38[Duedate] &amp;gt;= Report[First day],
    ISBLANK(IW38[Date finished]),
    IW38[Duedate] &amp;lt; TODAY()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering you have relation between Report and IW#* table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please mark this is a solution and a kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 04:38:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4294475#M170443</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-11-21T04:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: My brain doesn't function, help! Count overdues in a month.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4296284#M170552</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369173" data-lia-user-login="IAM" class="lia-mention lia-mention-user"&gt;IAM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following dax expression.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;OpenAndOverdueTickets = 
VAR StartDate = Report[First day]
VAR EndDate = Report[Last day]
RETURN
CALCULATE(
    COUNTROWS(IW38),
    IW38[Date created] &amp;lt;= EndDate,
    IW38[Duedate] &amp;lt;= EndDate,
    IW38[Date finished] &amp;gt; EndDate || ISBLANK(IW38[Date finished])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 02:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-brain-doesn-t-function-help-Count-overdues-in-a-month/m-p/4296284#M170552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-22T02:48:05Z</dc:date>
    </item>
  </channel>
</rss>

