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

Systemuser table mutiple relationships

I'm using 2016 update 1 CRM Online with Power BI connected via HTTP REST API to boost speed.

 

I'm using the 'best practice' protocol of not using expanded columns in the data query but rather using a relationship & look up / related column in another table to boost performance when returning rows.  

 

The problem is that there are mutiple fields in the entity table that could relate to Systemuser table.  For example,

 

_ownerid_value

_createdby_value

_modifiedby_value

 

all will have lookup values in the system table aginst systemuser ID.  I've tried to edit this in relationships but I get a message telling me that there is 'ambiguity' between the tables. 

 

There are occassions where I need to know who has booked something (created by) as well as who has the record assigned to them (owner) and even who had changed it.

 

I can't work out how to have the look up value (user's name) appear more than once if that makes sense.

 

can anyone help please?

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

I believe that one way to solve this would be to download the Systemuser table 3 times. I would name the tables "Owner Users", "Create Users" and "Modify Users" or something similar to tell them apart from one another. Relate each of the columns in the entity table to its corresponding Systemuser table. Then you can use the column from each of the 3 tables in the same visualization. 


@ 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...

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

I believe that one way to solve this would be to download the Systemuser table 3 times. I would name the tables "Owner Users", "Create Users" and "Modify Users" or something similar to tell them apart from one another. Relate each of the columns in the entity table to its corresponding Systemuser table. Then you can use the column from each of the 3 tables in the same visualization. 


@ 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

Thanks @Greg_Deckler yes sorry it was a daft question, solution was really obvious I should've worked that out myself!

 

Thank you.

Anonymous
Not applicable

Actually I tried this and my Created By field and my Modifed By field using RELATED('Tablename[column]') are blanks.  Owner is still working and yes they are all mapped in the relationship screen

I don't think that you should need any kind of formula but I may not be understanding the issue correctly, I guess what I envisioned was that you had a main table with an numeric ID in your three columns you mentioned. Each of these is related to one of the three System User tables by that ID but they also have the name of the individual. In this case, you should just have to create a table visualization with some column from your main table and then just drop in the "Name" columns from your three related tables and everything *should* work.


@ 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

 

I've been going off this link here explaining how to make the queries run quicker http://us.hitachi-solutions.com/blog/2016/06/20/fast-vs-furious-powerbi-dynamics-crm-avoid-common-mi...

 

Anyway, I've re-imported the systemuser table again twice from source and it has data in it now for create by and modified by.  I've put the relationships in and they show up in the visuals.

 

Thanks again.

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.