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

View all the Fabric Data Days sessions on demand. View schedule

Reply
krish42
Regular Visitor

How to create the semantic model for CRM ActivityPointer

Hi all,

  I have a table in Azure SQL DB which is the data exported from Microsoft CRM ActivityPointer table.

This table has a field named RegardingId which refers to multiple tables in CRM(Task, contact, account, salesorder, quote, incident, email, phonecall, lead, oportunity bla bla).

 

What is the best way to create the data model to retrieve all the data from the related tables along with the Activity details?

 

Contact and Account tables directly relat to the ActivityPointer table whereas the other tables relate as below

 

ActivityPoint -> Opportunity -> Contact -> Account

or

ActivityPoint -> Opportunity -> Account

 

Do I need to split RegardingId into multiple columns in the ActivityPointer table and relate to other tables?

 

Or Do I need split ActivityPointer into multiple Fact tables which is very complex?

 

Please suggest

2 ACCEPTED SOLUTIONS
alish_b
Continued Contributor
Continued Contributor

Hey @krish42 ,

 

It is a little difficult to recommend you an exact solution based on this information. On a higher level though, you should make sure that you follow star schema and you could go through this rich documetation from Microsoft about the same: https://learn.microsoft.com/en-us/power-bi/guidance/star-schema


If you require more focused help, please representative sample or example of your data so that we could understand it better and provide feedback accordingly (because what might feel obvious to you can sound alien to us).

Hope it helps!

View solution in original post

Thejeswar
Super User
Super User

Hi @krish42 ,

The Details you have given are not sufficient enough to give a very precise direction on setting up a data model.

But at high level you can keep into consideration the following points while re-designing this

 

1. The Model should be as close to a Star Schema as possible (i.e. 1 Fact and Multiple dimensions)

2. Since the Activity and Contact can be connected directly to the fact table, that should be set up

3. Instead of having a wide table focus on having a vertically long table. With very limited understanding of your data, I guess introducing separate columns for the regarding id, would only introduce lot of NULLs in to the table.

 

In the section where you have mentioned the relationship for the other tables, it may not be possible to explain on the next actions without much context on what columns are involved in the relationship between each of these tables

 

If possible share a pbix with some dummy data for the tables that you are trying to put into a datamodel. That will make things faster to resolution

 

Regards,

View solution in original post

2 REPLIES 2
Thejeswar
Super User
Super User

Hi @krish42 ,

The Details you have given are not sufficient enough to give a very precise direction on setting up a data model.

But at high level you can keep into consideration the following points while re-designing this

 

1. The Model should be as close to a Star Schema as possible (i.e. 1 Fact and Multiple dimensions)

2. Since the Activity and Contact can be connected directly to the fact table, that should be set up

3. Instead of having a wide table focus on having a vertically long table. With very limited understanding of your data, I guess introducing separate columns for the regarding id, would only introduce lot of NULLs in to the table.

 

In the section where you have mentioned the relationship for the other tables, it may not be possible to explain on the next actions without much context on what columns are involved in the relationship between each of these tables

 

If possible share a pbix with some dummy data for the tables that you are trying to put into a datamodel. That will make things faster to resolution

 

Regards,

alish_b
Continued Contributor
Continued Contributor

Hey @krish42 ,

 

It is a little difficult to recommend you an exact solution based on this information. On a higher level though, you should make sure that you follow star schema and you could go through this rich documetation from Microsoft about the same: https://learn.microsoft.com/en-us/power-bi/guidance/star-schema


If you require more focused help, please representative sample or example of your data so that we could understand it better and provide feedback accordingly (because what might feel obvious to you can sound alien to us).

Hope it helps!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors