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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Request Help

Dear All,

 

I need help in solving a data model. Please refer attached data model. I need to build a report using all the six tables, however I am unable to pull data from "BusinessUserRoles" table and "BusinessUsers" table. I am not sure where I went wrong? Please suggest a solution. Note: Role ID column in "BusinessRolePermit"table and  "BusinessUserRoles" Table both have duplicate values, hence could get a direct relationship.DataModel.PNG

 

 

 

 

3 REPLIES 3
Greg_Deckler
Super User
Super User

Probably involves the directions of your relationships. Tough to say because no data and no context in terms of your visual or what you are trying to accomplish.  Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello Greg,

 

Thank you for the quick response. I have six tables namely BusinessCategories, BusinessPermits, BusinessRolePermit, BusinessRoles, BusinessUserRoles, BusinessUsers as my input. Using these tables, I have to create a report.

 

BusinessCategories

Business IDBusiness Category
NY101Person
NY102Mail Form
NY103Application
NY104Accounts

 

BusinessPermits

Permit ID PermitBusiness ID
100Enter Person Module (Read-only)NY101
200Edit a PersonNY101
300Delete a personNY103
400Enter Member Company Module (Read-only)NY104
500Edit a companyNY103

 

BusinessRolePermit

Role IDPermit ID
XBXY-987V-A678-HLFJSFSA6100
GFHY-837F-F725-LIPGSTFSL2500
XBXY-987V-A678-HLFJSFSA6200
LPAR-298R-U364-LPSRKHVY5500

 

BusinessRoles

Role IDRoles Description 
XBXY-987V-A678-HLFJSFSA6GuestRead-Only Access
GFHY-837F-F725-LIPGSTFSL2AdminRead Write Access
JKSP-567W-J275-KSPFNXMT8UserRead-Only Access
LPAR-298R-U364-LPSRKHVY5Super UserRead-Only Access

 

BusinessUserRoles

Role IDUser ID
XBXY-987V-A678-HLFJSFSA6A00201
GFHY-837F-F725-LIPGSTFSL2A00202
JKSP-567W-J275-KSPFNXMT8A00203
GFHY-837F-F725-LIPGSTFSL2A00204

 

BusinessUsers

User IDNameLogin
A00201Raghav Vellankirvellanki
A00202Jason PetersonJpeterson
A00203Alan KingAking
A00204Mark WaughMwaugh

 

The expected output report should have the following columns:

Role IDRolesDescriptionPermitBusinessCategoryPermit IDNameLogin
XBXY-987V-A678-HLFJSFSA6GuestRead-Only AccessEnter Person Module (Read-only)Person600Raghav Vellankirvellanki
GFHY-837F-F725-LIPGSTFSL2AdminRead Write AccessEnter Person Module (Read-only)Person500Jason PetersonJpeterson
JKSP-567W-J275-KSPFNXMT8GuestRead-Only AccessEnter Person Module (Read-only)Person500Alan KingAking
LPAR-298R-U364-LPSRKHVY5GuestRead-Only AccessEnter Member Company Module (Read-only)Member Company600Mark WaughMwaugh

 

The relationships that I built could only retriev till column PermitID. When I try to pull data for 'Name' and 'Login' columns. I am getting an error message "Can't determine relationships between the fields"

 

 

Anonymous
Not applicable

DataModel.PNGError Message.PNG

 

The error message screenshot and relationships screenshot are added here. Please suggest.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.