Forum Discussion

yoshi_matsu's avatar
yoshi_matsu
Frequent Visitor
2 years ago
Solved

Please advise on the ideal data structure when multiple business processes are included in a single

I am envisioning a data structure similar to that of Salesforce (SFDC).

For instance, consider a table where multiple statuses are stored, as shown in the table below.

In a sales process, for example, the process (status) progresses in the order of "Meeting Acquired → Meeting Held → Order Received," and all three are stored in a single table.

 

▼date▼status▼salses▼costomer
2024/01/01Meeting AcquiredMarioYoshi company
2024/02/01Meeting HeldMarioYoshi company
2024/03/01OrderMarioYoshi company
2024/04/01Meeting AcquiredJakeCDE company
2024/04/03OrderMashABC company

 

When using this in Power BI, what would be the optimal way to shape the table for ideal performance in analysis? I would like to maintain a table structure that is as versatile as possible.

 

※When implementing this, I plan to create a data mart by processing the original database before loading it into Power BI.

4 Replies

  • What you are trying to do is SCD2, and is NOT how SFDC does things. In SFDC you have an Object Field History table instead.