<?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: DAX  Calculate delay per month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748701#M36382</link>
    <description>&lt;P&gt;Hi ERD, thank you so much for your answer ! But not working...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;View the attachment .pbix :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.transfernow.net/dl/20210326haKI2cmE" target="_self"&gt;https://www.transfernow.net/dl/20210326haKI2cmE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 16:44:06 GMT</pubDate>
    <dc:creator>DGTL</dc:creator>
    <dc:date>2021-03-26T16:44:06Z</dc:date>
    <item>
      <title>DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730681#M35815</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Hello,

Can you unlock me on a Dax measure?


I would like to have a monthly bar chart with a calculation of overdue orders each month.

Example:
The customer requests a delivery for the 02/01/2021 (DELIVERY REQUESTED DATE)
Delivery is delivered late on 03/15/2021 (DELIVERY DATE)

My histogram should look like this&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;

Thank you so much !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:49:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730681#M35815</guid>
      <dc:creator>DGTL</dc:creator>
      <dc:date>2021-03-18T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730782#M35821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can create 2 new columns to solve your problem. First create a column with Overdue, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OVERDUE = IF('Table'[DELIVERY DATE].[Date] &amp;gt; 'Table'[DELIVERY REQUESTED DATE].[Date],1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then the month form the table you want to call "late", I used the actual delivery date for mine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MONTH = MONTH('Table'[DELIVERY DATE].[Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that you can simply create the histogram with the sum of OVERUDE on Y axis and MONTH on X axis.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:30:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730782#M35821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-18T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730927#M35843</link>
      <description>&lt;P&gt;Thanks Ascarim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But not working...&amp;nbsp;&amp;nbsp;if the delivery date have several months late, I would not see it in this case. It must be represented on each late month. Like in the first picture&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1730927#M35843</guid>
      <dc:creator>DGTL</dc:creator>
      <dc:date>2021-03-18T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1741600#M36195</link>
      <description>&lt;P&gt;up please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 07:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1741600#M36195</guid>
      <dc:creator>DGTL</dc:creator>
      <dc:date>2021-03-24T07:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748660#M36378</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="178443" data-lia-user-login="DGTL" class="lia-mention lia-mention-user"&gt;DGTL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;One of the options to achieve your result:&lt;/P&gt;&lt;P&gt;1. Create a calendar table with months (first day of each month). This table will be used for your X axis. No relations are needed.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;[Date] (month/day/year)&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;5/1/2020&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;6/1/2020&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;7/1/2020&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;8/1/2020&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;9/1/2020&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;etc&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;2. Create a measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Overdue orders = 
VAR currentDate = EOMONTH(SELECTEDVALUE('Calendar'[Date]), 0)
VAR result = 
CALCULATE(
    COUNTROWS(Overdue_orders),
    FILTER(Overdue_orders,
        currentDate &amp;gt;= Overdue_orders[Requested date]  &amp;amp;&amp;amp;
        currentDate &amp;lt;= EOMONTH(Overdue_orders[Delivered date], 0) &amp;amp;&amp;amp;
        Overdue_orders[Requested date] &amp;lt;&amp;gt; Overdue_orders[Delivered date]
    )
)
Return
IF(ISBLANK(result),0,result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#999999"&gt;Did I answer your question? Mark my post as a solution!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:14:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748660#M36378</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-26T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748701#M36382</link>
      <description>&lt;P&gt;Hi ERD, thank you so much for your answer ! But not working...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;View the attachment .pbix :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.transfernow.net/dl/20210326haKI2cmE" target="_self"&gt;https://www.transfernow.net/dl/20210326haKI2cmE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 16:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748701#M36382</guid>
      <dc:creator>DGTL</dc:creator>
      <dc:date>2021-03-26T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748776#M36384</link>
      <description>&lt;P&gt;!&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR currentDate = EOMONTH(SELECTEDVALUE('&lt;STRONG&gt;First Month'[First Month]&lt;/STRONG&gt;), 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748776#M36384</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-26T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX  Calculate delay per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748784#M36385</link>
      <description>&lt;P&gt;Another option upon Table Dates:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;overdueOrders2 = 
var currentDate2 = SELECTEDVALUE('Table Dates'[Date])
var RES2 = 
CALCULATE(
    COUNTROWS(Overdue_orders),
    FILTER(
        Overdue_orders,
        currentDate2 &amp;gt;= Overdue_orders[Requested date] &amp;amp;&amp;amp;
        currentDate2 &amp;lt;= Overdue_orders[Delivered date]))

Return
IF(ISBLANK(RES2),0,RES2)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Calculate-delay-per-month/m-p/1748784#M36385</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-26T17:44:53Z</dc:date>
    </item>
  </channel>
</rss>

