Forum Discussion

ninakarsa's avatar
ninakarsa
Helper II
6 years ago

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

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

     

    thanking you in advance

    • amitchandak's avatar
      amitchandak
      Super User

      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

      • ninakarsa's avatar
        ninakarsa
        Helper II

        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