Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
170323003
Helper I
Helper I

Average Booking Date

So:

 

 

What i want: 

Average allocation time by park and type of equipment

 I want to know, in average, how many time do bookings take to be allocated.

 

The relations are

Bookings ---> Equipment ---> Reserve

 

I've tried something that is wrong i guess, because there's no direct relation between bookings and reserves:

(measure)

AvgResponseTime = AVERAGEX(Bookings, DATEDIFF(Bookings[Date], Reservas[Date],HOUR))
 
I'm hardstuck at this one, so if anyone can help me, i would appreciate 😄
4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@170323003 - 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. 

 

Overall, not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
harshnathani
Community Champion
Community Champion

hi @harshnathani !

 

ty for ur response.

 

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).
what do u suggest in this scenario?

amitchandak
Super User
Super User

@170323003 , 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

 

Refer this blog : https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Differ...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors