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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ninakarsa
Helper II
Helper II

Booking Pace

Hi Support,

 

I have data which gives the date the customer will arrive in the car park and the date the booking was made. I want to use dax to create table B, which shows by booking date the number of customers arriving my month. Once this is calculated I need to find a way to calculate the 'booking pace', so that i can predict the total number of customers arriving by month. 

 

Table A:

Booking DateArrival Date of Customermonth Arriving date
01/01/201901/05/20195
01/01/201902/05/20195
01/01/201903/06/20196
01/01/201904/06/20196
01/01/201905/05/20195
01/01/201906/04/20194
02/01/201910/04/20194
02/01/201925/04/20194
02/01/201910/05/20195
02/01/201925/05/20195
02/01/201909/06/20196
02/01/201924/06/20196
02/01/201909/07/20197
02/01/201924/07/20197
02/01/201908/08/20198
02/01/201923/08/20198

 

Table B:

Booking Dateno CustomersJanFebMarAprMayJunJulyAug
01/01/2019                      6   431  
02/01/2019                    10   22222
03/01/2019                    155 5  5  
04/01/2019                    10  5  5  
05/01/2019                    10  22222 
06/01/2019                    20 2222210 
07/01/2019                    15   5 5 5
08/01/2019                    10       10
09/01/2019                    20  2445 5
10/01/2019                      5   113  

 

4 REPLIES 4
ninakarsa
Helper II
Helper II

or maybe another way which i can see if my bookings will be on track for the month. 

 

thanking you in advance

If you drag both dates in the matrix visual, on row and one on the column. It should give date hierarchy option. On one side choose date(Booking) another side choose Month year(Arrival).

And take count of the customer as measure

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

thanks for your reply. Once I get the data in that form I want to create the following measures:

 

cumulative customers: for example for 05.4.19 this will be 8

booking ratio: cumulative customers/ number of booking dates

eg for 05.04.19 this will be 8/5= 1.6

bookings until the end of the month: booking ratio * the number of remaining days left to make bookings + bookings already made

eg for 05.04.18 this will be 1.6 * (30-5)+8=48

 Apr    
Booking Dateno customersCumulative customersbooking ratiobookings until end of the monthtarget for the month
01/01/201944                                      4.00                                                    12050
02/01/201926                                      3.00                                                      9050
03/01/2019 6                                      2.00                                                      6050
04/01/2019 6                                      1.50                                                      4550
05/01/201928                                      1.60                                                      4850
06/01/2019210                                      1.67                                                      5050
07/01/2019515                                      2.14                                                      6450
08/01/2019 15                                      1.88                                                      5650
09/01/2019419                                      2.11                                                      6350
10/01/2019120                                      2.00                                                      6050

 

 

@ninakarsa I have a few questions about your request for measures:

  1. What is your date format? Is 2/1/2020  January 2, 2020 or February 1, 2020? IOW M/D/Y or D/M/Y?
  2. I don't understand your cumulative example. for 5.4.19 (may 4 or apr 5?) how are you getting 8? By the 4th/5th month, there are a lot more than 8 customers.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.