<?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: Response times in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384569#M25316</link>
    <description>&lt;P&gt;What does DATEDIFF return for an empty Début date?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var d = DATEDIFF(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début],MINUTE)
return if(ISBLANK(CompteRendu[Date et Heure Début])  || d&amp;lt;0,0,d-1440*sumx(CALENDAR(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début]),if(WEEKDAY([Date],2)&amp;gt;5,1,0)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Date" is a hardcoded column name result of the CALENDAR function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 13:19:21 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-09-21T13:19:21Z</dc:date>
    <item>
      <title>Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380089#M25218</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Bonjour,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;J'ai un problème dans Power BI, je n'arrive pas à calculer les délais d'intervention&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="QmZWSe"&gt;&lt;DIV class="DHcWmd"&gt;&lt;FONT&gt;&lt;FONT&gt;J'ai:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&lt;FONT&gt;&lt;FONT&gt;"La date de création du ticket"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT&gt;&lt;FONT&gt; au format JJ / MM / AAA HH: MM: SS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;FONT&gt;&lt;FONT&gt;"Date d'intervention"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT&gt;&lt;FONT&gt; au format JJ / MM / AAA HH: MM: SS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;J'utilise la FORMULE DAX: &lt;/FONT&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT&gt;&lt;FONT&gt;"DATEDIFF"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT&gt;&lt;FONT&gt; , mais je veux calculer le temps de réponse en &lt;/FONT&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT&gt;&lt;FONT&gt;"Minute" sans tenir compte des&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;samedi et dimanche.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="DHcWmd"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="DHcWmd"&gt;&lt;U&gt;&lt;FONT&gt;&lt;FONT&gt;Exemple:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="DHcWmd"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT&gt;&lt;FONT&gt;Date de la demande d'intervention&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;Vendredi 03/09/2020 10:30:00&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;Date d'intervention&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT&gt;&lt;FONT&gt;09/09/2020 15:00:00&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Résultat = 6030 MINUTES OU 100,5 HEURES&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;Vous remerciant à l'avance&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;Au revoir&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Sep 2020 13:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380089#M25218</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-18T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380476#M25225</link>
      <description>&lt;P&gt;Here is a sample table definition for a table called "Intervention"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WstQ31jcyMDJQMDSwMjawMjBQ0gGKWULFTIECILHYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Start = _t, End = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Start", type datetime}, {"End", type datetime}})
in
    #"Changed Type"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the &lt;STRONG&gt;calculated column&lt;/STRONG&gt; that calculates the difference in minutes minus your specified weekend days&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var db = CALENDAR(Intervention[Start],Intervention[End])
var we = ADDCOLUMNS(db,"WE",if(WEEKDAY([Date],2)&amp;gt;5,1,0))
return DATEDIFF(Intervention[Start],Intervention[End],MINUTE)-1440*sumx(we,[WE])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 15:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380476#M25225</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-18T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380551#M25227</link>
      <description>&lt;P&gt;Here's a slightly different approach, same result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference =
DATEDIFF ( Intervention[Start], Intervention[End], MINUTE )
    - 1440 * SUMX (
            CALENDAR ( Intervention[Start], Intervention[End] ),
            IF ( WEEKDAY ( [Date], 2 ) &amp;gt; 5, 1, 0 )
        )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 15:43:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1380551#M25227</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-18T15:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1383141#M25277</link>
      <description>&lt;P&gt;&lt;FONT&gt;Bonjour,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Merci pour cette reponse rapide, mais je ne comprend pas à quoi fait référence cette partie là:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;if (WEEKDAY (&lt;FONT face="arial black,avant garde"&gt;[Date]&lt;/FONT&gt;, 2)&amp;gt; 5,1,0))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Merci par avance,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 06:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1383141#M25277</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T06:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384251#M25300</link>
      <description>&lt;P&gt;This marks Saturday and Sunday as 1 and all other weekdays as 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:08:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384251#M25300</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384344#M25303</link>
      <description>&lt;P&gt;&lt;FONT&gt;Merci mais à quoi fait référence "Date" ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384344#M25303</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T11:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384358#M25304</link>
      <description>&lt;P&gt;&lt;img /&gt;&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;</description>
      <pubDate>Mon, 21 Sep 2020 11:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384358#M25304</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384420#M25306</link>
      <description>&lt;P&gt;Youe ADDCOLUMNS line references &lt;STRONG&gt;CompteRendu&lt;/STRONG&gt;, but it should reference the previously created table variable &lt;STRONG&gt;db&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 12:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384420#M25306</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T12:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384505#M25309</link>
      <description>&lt;P&gt;Voici ce que j'ai :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Le probléme c'est que parfois la date de la demande peut être inférieur à la date d'intervention et dans ce cas la valeur doit être 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Merci pour l'aide&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 12:38:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384505#M25309</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T12:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384517#M25313</link>
      <description>&lt;P&gt;That's something you want to control in your data before you call the CALENDAR function.&amp;nbsp; You can use the DATEDIFF function to find out if you have that issue, for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a more compact version that checks for the date issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var d = DATEDIFF(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début],MINUTE)
return if(d&amp;lt;0,0,d-1440*sumx(CALENDAR(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début]),if(WEEKDAY([Date],2)&amp;gt;5,1,0)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:02:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384517#M25313</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384559#M25315</link>
      <description>&lt;P&gt;Il ce peux aussi que l'intervention n'ai pas encore débutée&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Je ne comprend pas d'où vient le [Date].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Merci, cordialement&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384559#M25315</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384569#M25316</link>
      <description>&lt;P&gt;What does DATEDIFF return for an empty Début date?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var d = DATEDIFF(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début],MINUTE)
return if(ISBLANK(CompteRendu[Date et Heure Début])  || d&amp;lt;0,0,d-1440*sumx(CALENDAR(CompteRendu[Date et Heure Demande],CompteRendu[Date et Heure Début]),if(WEEKDAY([Date],2)&amp;gt;5,1,0)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Date" is a hardcoded column name result of the CALENDAR function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:19:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384569#M25316</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384655#M25319</link>
      <description>&lt;P&gt;Quand la date est vide&amp;nbsp; alors on calcule le délais par rapport à "today()" ou "now()".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exemple:&lt;/P&gt;&lt;P&gt;Date de la demande: 20/09/2020 à 08h00&lt;/P&gt;&lt;P&gt;Date de début (si vide): NOW()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Merci&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:43:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384655#M25319</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384692#M25322</link>
      <description>&lt;P&gt;Now you are entering really dangerous territory. &lt;STRONG&gt;NOW()&lt;/STRONG&gt; can have many different meanings. Here is one interpretation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var e = COALESCE(CompteRendu[Date et Heure Début],UTCNOW())
var d = DATEDIFF(CompteRendu[Date et Heure Demande],e,MINUTE)
return if(d&amp;lt;0,0,d-1440*sumx(CALENDAR(CompteRendu[Date et Heure Demande],e),if(WEEKDAY([Date],2)&amp;gt;5,1,0)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384692#M25322</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384855#M25325</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afin de recentrer le probléme voici le tableau:&lt;/P&gt;&lt;P&gt;Pour résumé, le tableau résume les compte rendu des demandes d'intervention mais aussi des maintenances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/!\&amp;nbsp; Les maintenance n'ont pas de "date et heure de demande"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;CR&lt;/TD&gt;&lt;TD&gt;SUR&lt;/TD&gt;&lt;TD&gt;N°&lt;/TD&gt;&lt;TD&gt;Détail&lt;/TD&gt;&lt;TD&gt;Date et heure demande&lt;/TD&gt;&lt;TD&gt;Date et heure début&lt;/TD&gt;&lt;TD&gt;Résultat attendu&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;DI&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;Serait il possible de baisser le chauffage&lt;/TD&gt;&lt;TD&gt;11/8/20 15:34&lt;/TD&gt;&lt;TD&gt;16/8/20 8:30&lt;/TD&gt;&lt;TD&gt;Délais en minutes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;DI&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;TD&gt;Serait il possible de baisser le chauffage&lt;/TD&gt;&lt;TD&gt;3/9/20 11:20&lt;/TD&gt;&lt;TD&gt;9/9/20 15:22&lt;/TD&gt;&lt;TD&gt;Délais en minutes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;BP&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;Maintenance climatisation&lt;/TD&gt;&lt;TD&gt;(vide) / 0&lt;/TD&gt;&lt;TD&gt;16/9/20 9:12&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;DI&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;Serait il possible de baisser le chauffage&lt;/TD&gt;&lt;TD&gt;4/9/20 12:15&lt;/TD&gt;&lt;TD&gt;19/8/20 13:14&lt;/TD&gt;&lt;TD&gt;Délais en minutes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;BP&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;TD&gt;Maintenance chauffage&lt;/TD&gt;&lt;TD&gt;(vide) / 0&lt;/TD&gt;&lt;TD&gt;16/9/20 10:21&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Le but est de calculer le délais d'intervention sur les demandes sans prendre en compte les samedi et dimanche.&lt;/P&gt;&lt;P&gt;Si la date de début est antérieur à la date de la demande, alors =0.&lt;/P&gt;&lt;P&gt;Si BP alors = 0&lt;/P&gt;&lt;P&gt;Si pas de date de début alors = Now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Merci pour l'aide, je suis vraiment dans une impasse.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384855#M25325</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-21T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384867#M25326</link>
      <description>&lt;P&gt;please revalidate your rule/expected outcome for row 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the adjusted calculated column after re-reading your explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Difference = 
var e = COALESCE(CompteRendu[Date et Heure Demande],UTCNOW())
var d = DATEDIFF(e,CompteRendu[Date et Heure Début],MINUTE)
return if(d&amp;lt;0,0,d-1440*sumx(CALENDAR(e,CompteRendu[Date et Heure Début]),if(WEEKDAY([Date],2)&amp;gt;5,1,0)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 16:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1384867#M25326</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1386255#M25351</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J'ai toujours ce message d'erreur, car lorsque j'ai un "bp" la&amp;nbsp; valeur&amp;nbsp; de "Date et Heure Demande" est&amp;nbsp; vide. Ou parfois il n'y a pas de date de début.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:49:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1386255#M25351</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-22T06:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1387268#M25363</link>
      <description>&lt;P&gt;There is a difference between an empty string ("") and no data (null).&amp;nbsp; The COALESCE function only works with the second scenario.&amp;nbsp; If you know that for BP your demand data may be an empty string ""&amp;nbsp; then you need to either adjust the first line, or replace the empty string with BLANK() (which produces a null value)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 12:37:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1387268#M25363</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-22T12:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1393385#M25567</link>
      <description>&lt;P&gt;Super,&amp;nbsp; cà fonctionne !!! Mais j'ai desormais un autre probléme, je refais un topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps: cette formule peut elle être adaptée en Power Query ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 14:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1393385#M25567</guid>
      <dc:creator>Aurélien</dc:creator>
      <dc:date>2020-09-24T14:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Response times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1393411#M25569</link>
      <description>&lt;P&gt;Yes, since the computation happens inside the row it is possible to implement in Power Query.&amp;nbsp; You would need to use the same process - create the list, and then identify sat/sun via&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/powerquery-m/date-dayofweek" target="_blank"&gt;https://docs.microsoft.com/en-us/powerquery-m/date-dayofweek&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This actually reminds me - what do you want to do when the start or end dates are on weekend days?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 14:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Response-times/m-p/1393411#M25569</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-24T14:52:04Z</dc:date>
    </item>
  </channel>
</rss>

