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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
yoshi_matsu
New Member

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.

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

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.

View solution in original post

SCD2 is not a bad approach for what you are trying to do.  All you need is a distinct record identifier and a "Modification Date"  column.

 

Implementing Slowly Changing Dimensions (SCDs) in Data Warehouses (sqlshack.com)

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

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.

Apologies, you are right; SFDC was not relevant.

 

Does it make sense to transform the table structure into a more ideal format in the database before loading it into Power BI? If so, what kind of structure would be best?

SCD2 is not a bad approach for what you are trying to do.  All you need is a distinct record identifier and a "Modification Date"  column.

 

Implementing Slowly Changing Dimensions (SCDs) in Data Warehouses (sqlshack.com)

For example, separating the table by status.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors