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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Calli
New Member

Help constructing data model

Good morning!

 

I'm interested in setting up BI for my workplace but before I pitch it to the bosses I'd like to make an example of a dataset of one of our clients.

 

Our data model in SQL is outdated and far from efficient but I've got to work with what I've got to work. I'm having the following issues:

- an account has an accountcode as PK 

- an order has an ordercode as PK

- a visit has a visitcode as PK

- a distribution check has a distributioncode as PK

- an employee has an employeecode as PK

- a product has a productcode as PK

 

An employee can go to an account that is in his Territory and make a visit which makes him the Visitor and Owner.

But an employee can also go to an account that is NOT in his Territory and make a visit which makes him the Visitor, but not Owner.

I'd like to include an "Employee" table and a "Territory" table so that you can filter on visits where Employee X is the Owner of the account or is the Visitor. 

 

An account can be visited multiple times of course and a visit can have multipe orders and/or multiple distribution checks. 

But not all orders happen in a visit. There are some accounts that call their order in, so no Visit is registered, just the orders.

So orders are best linked to the account and so are the visits, but an ordercode sometimes have to be linked to a visitcode and sometimes not if the order was registered without a visitcode. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Calli ,

 

According to your statement, I am still confused about your requirement. I think Power BI doesn't support us to limit the number of times a role user in workspace to view the report in workspace. 

For reference:

Roles in workspaces in Power BI

Power BI support us to restrict data based on user by Row level Security.

For reference:

Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Calli ,

 

According to your statement, I am still confused about your requirement. I think Power BI doesn't support us to limit the number of times a role user in workspace to view the report in workspace. 

For reference:

Roles in workspaces in Power BI

Power BI support us to restrict data based on user by Row level Security.

For reference:

Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.