<?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 Average Booking Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280077#M21807</link>
    <description>&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i want:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Average allocation time by park and type of equipment&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&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[Date],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:19:32 GMT</pubDate>
    <dc:creator>170323003</dc:creator>
    <dc:date>2020-08-13T08:19:32Z</dc:date>
    <item>
      <title>Average Booking Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280077#M21807</link>
      <description>&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i want:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Average allocation time by park and type of equipment&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&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[Date],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:19:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280077#M21807</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-13T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Average Booking Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280130#M21812</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; , Seem like they are in different tables. make sure common dimesion like booking id and use values(bookingDIm[booking_id]) Or summarize in case you have more than one common key &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer this blog : &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>Fri, 07 Aug 2020 11:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280130#M21812</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-07T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Average Booking Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280156#M21813</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;See if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Column for Time Difference and then calculate the Average.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Create-a-column-to-calculate-average-time-difference/td-p/113278" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Create-a-column-to-calculate-average-time-difference/td-p/113278&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Help-with-average-of-time-calculations/td-p/152270" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Help-with-average-of-time-calculations/td-p/152270&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Fri, 07 Aug 2020 12:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280156#M21813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-07T12:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average Booking Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280224#M21820</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ty for ur response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i understood the posts u sent to me, but my problem is that i dont have starttime and end time in the same table, and they dont tven have relation (only with another table in the middle of them).&lt;BR /&gt;what do u suggest in this scenario?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 12:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280224#M21820</guid>
      <dc:creator>170323003</dc:creator>
      <dc:date>2020-08-07T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average Booking Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280307#M21827</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;&amp;nbsp;- You can use LOOKUPVALUE to lookup values between unrelated tables. Also, if that is truly a measure then I would think you would need a min/max aggregation or something similar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall, not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &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;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 13:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Booking-Date/m-p/1280307#M21827</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-07T13:09:53Z</dc:date>
    </item>
  </channel>
</rss>

