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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
pacifist
Helper II
Helper II

Get lookup from other table struggle

Hi, 

 

I'm sure this will be easy points for the forum gurus.

 

Table A ("Orphaned Workspaces"): Contains PBI workspace information. Has a `WS_ID` information. 

Table B ("Workspace History"): Contains PBI workspace activity information. Has a `WORKSPACE_ID` that links to table A. Has a `UserId` field that links to table C.

Table C ("AAD_USERS"): Contains AAD Users. Has `Principal_User_Name` that links to table B.

In model:
TableA has a relationship with TableB.
TableB has no relationship with TableC, but can be filtered by the UserId through Principal_User_Name.

What I would like to get is the lookup  into the TableC and return TRUE / FALSE if the userid from workspace history exists in AAD_Users table.. (TABLEC). The idea is to identify if all the users are still in the company or not.

pacifist_0-1694678180589.png


Thank you!


-- @sjoerdvn (easy points for you perhaps?)


2 REPLIES 2
sjoerdvn
Super User
Super User

try something like:

aad_user_lookup = IF(HASONEVALUE('Workspace History'[USERID]),
  CONTAINS('AAD_USERS',[Principal_user_Name],VALUES('Workspace History'[USERID])))

Thank you for your quick response. However this is not working as it ends in visual complaining there is more than 1M rows.

just for the picture: Workspace History is de facto Activity Events table with millions of rows. I'm expecting the TableA (workspaces) to filter TableB (ActivityEvents) naturally by using the relationship, which works relatively fine. I'm saying relatively as when I click on a record in the WorkspaceHistory visual, it gets me 1M rows error too...

But adding the DAX you've proposed doesn't unfortunately work.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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