cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Laocsulak
Helper I
Helper I

Data modeling for marketplace with same table with movements registered for buyers and sellers

Hello,

 

I work for a startup where we have a marketplace where we have buyers who make purchases and sellers who make sales.

 

The model of the transactions table is built in the next way: For example, if a customer makes a purchase in 3 installments, the transactions table registers 6 movements. 3 movements with the features of the installments of the buyer and 3 movements with the features of the installments of the seller.

 

What is the best way to model this, using the same transactions as the fact table for all movements or separating it into two fact tables, one for movements related to sales and one for movements related to purchases?

 

Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Laocsulak , Best is two tables with common dimensions like user, date etc

But you can manage with measures.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Laocsulak , Best is two tables with common dimensions like user, date etc

But you can manage with measures.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors