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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Khadeer123
Frequent Visitor

Data Model - Single Transaction Table

Dear Team,

 

Below is the brief about the requirement.

 

  • Requirement for Automobile Industry
  • The transaction table list is Enquiry, Test Drive, and Booking attached sample data for your reference.
  • Enquiry Table Enquiry ID is the primary key. For each Enquiry, the system generates a unique number.
  • Test Drive table Test Drive ID is the primary key and Enquiry Key is the common key between Enquiry and Test drive.
  • Test drive is not mandatory for all Enquiries it's optional.
  • One Enquiry may give more than one Test drive and for a different model or same model (Ex: Enquiry ID 11 and 18 in Testdrive table)
  • Booking table Booking ID is the primary key. Enquiry Key is the common key between Enquiry and Booking.
  • Model on the time of Enquiry may differ while booking means Enquiry model and booking model may be same or different (Enquiry ID 3,7, 15 in booking table)

 

Input Tables

 

Enquiry Data

Enquiry IDEnquiry DateModelEnquiry TypeExchangeCustomer Type
121-01-2021MarutiDealerNInd
227-01-2021TataOnlineNInd
331-01-2021TataTelephoneYInd
403-02-2021KiaDealerNInd
507-02-2021TataOnlineYInd
612-03-2021MarutiTelephoneNInd
712-03-2021TataOnlineNCorp
814-03-2021KiaTelephoneYInd
921-03-2021MarutiDealerYInd
1027-03-2021KiaOnlineNInd
1112-04-2021KiaTelephoneNInd
1215-04-2021MarutiOnlineNInd
1301-05-2021KiaDealerNInd
1407-05-2021KiaOnlineYInd
1518-05-2021TataTelephoneNCorp
1622-05-2021MarutiDealerNInd
1727-05-2021TataOnlineNInd
1830-05-2021MarutiTelephoneYInd
1931-05-2021KiaOnlineNCorp
2004-06-2021TataDealerNInd

 

Testdrive 

Testdrive IDEnquiry IDTestdrive DateModel
101225-01-2021Tata
102301-02-2021Tata
103507-02-2021Kia
104815-03-2021Kia
105921-03-2021Maruti
1061112-04-2021Tata
1071113-04-2021Kia
1081302-05-2021Kia
1091518-05-2021Tata
1101801-06-2021Tata
1111801-06-2021Maruti
1121901-06-2021Kia

 

Booking 

Booking IDEnquiry IDBooking DateModelStatus
201130-01-2021MarutiInvoiced
202231-01-2021TataInvoiced
203331-01-2021KiaInvoiced
204712-03-2021KiaInvoiced
205922-03-2021MarutiBooked
2061115-04-2021KiaAllotted
2071518-05-2021KiaAllotted
2081727-05-2021TataBooked
2091801-06-2021MarutiInvoiced
2102004-06-2021TataBooked

 

 

The resultant output should be as below. 

 

Khadeer123_0-1623073985070.png

 

Thanks in advance. 

 

Sorry for the long post.

 

Regards,

Khadeer

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Khadeer123 ,

 

Please check the attachment:

ETBR - Model.PNGETBR.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Khadeer123 ,

 

Please check the attachment:

ETBR - Model.PNGETBR.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Khadeer123
Frequent Visitor

Yes. How to achieve the output which I have mentioned in the image by using the above data. 

 

Regards,

Khadeer

Shahfaisal
Solution Sage
Solution Sage

Do you have a specific question you need help with?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.