<?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: Averages Times in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1275623#M21596</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250465" data-lia-user-login="170323003" class="lia-mention lia-mention-user"&gt;170323003&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to share more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sharing 2 columns with Date and Time will not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using DATEDIFF and then Average.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 19:54:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-05T19:54:21Z</dc:date>
    <item>
      <title>Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273713#M21508</link>
      <description>&lt;P&gt;GM!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I need to get the average response time of bookings by warehouse and by equipment.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dates are from different tables.&lt;/P&gt;&lt;P&gt;How can i do this? I know i'll need some formulas, but i cant reach them atm.&lt;/P&gt;&lt;P&gt;If you need more info tell me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TY everyone &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 08:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273713#M21508</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-13T08:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273735#M21509</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250465" data-lia-user-login="170323003" class="lia-mention lia-mention-user"&gt;170323003&lt;/a&gt; , you need to have a common row context for that. refer to my blog. Same is true for import mode &lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Difference-Across/ba-p/934397#M451&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 08:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273735#M21509</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-05T08:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273880#M21511</link>
      <description>&lt;P&gt;Hi, ty for your response.&lt;/P&gt;&lt;P&gt;Although i didnt get &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you be more specific or explain me by an easier way?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1273880#M21511</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-05T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1275328#M21580</link>
      <description>&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1275328#M21580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-05T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1275623#M21596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250465" data-lia-user-login="170323003" class="lia-mention lia-mention-user"&gt;170323003&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to share more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sharing 2 columns with Date and Time will not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using DATEDIFF and then Average.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:54:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1275623#M21596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-05T19:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277742#M21701</link>
      <description>&lt;P&gt;Ok, lets go:&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;P&gt;&amp;nbsp;I want to know, in average, how many time do bookings take to be allocated.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The relations are&lt;/P&gt;&lt;P&gt;Bookings ---&amp;gt; Equipment ---&amp;gt; Reserve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried something that is wrong i guess, because there's no direct relation between bookings and reserves:&lt;/P&gt;&lt;P&gt;(measure)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AvgResponseTime = AVERAGEX(Bookings, DATEDIFF(Bookings[Date], Reservas[ResponseDate],HOUR))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm hardstuck at this one, so if anyone can help me, i would appreciate &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Aug 2020 08:22:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277742#M21701</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-13T08:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277776#M21707</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// For this to work, you have to have:
// Bookings * -&amp;gt; 1 Equipment on [EquipmentID]
// Bookings * -&amp;gt; Reservas on [ReserveID]

AvgResponseTime =
AVERAGEX(
    // This is the table you show
    // in the picture, I assume.
    Bookings, 
    DATEDIFF(
        Bookings[Booking Date],
        RELATED( Reservas[ResponseDate] ),
        HOUR
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277776#M21707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277810#M21710</link>
      <description>&lt;P&gt;I got this error:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i didnt get this part u send:&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;&lt;P&gt;forgot to mention that Reservas[ResponseDate] it's a measure i created:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ResponseDate = ALL(Reservas[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;although, if i use simply Reservas[Date] the error is the same&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 16:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averages-Times/m-p/1277810#M21710</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-06T16:10:29Z</dc:date>
    </item>
  </channel>
</rss>

