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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Crowbarella
New Member

Trying to pull data from unrelated table into a matrix (Workaround Found)

I have two tables, one with actual data and one that's basically just a lookup based on 3 fields (Class, group, and date). I'm trying to pull a single field from the lookup table into a matrix visual with all the other fields pulled from the first table. The problem is that every method I've found ends up summing the entire lookup column, rather than actually filtering the data according to the class and date range selected. I can't relate the two tables directly because the app keeps saying neither have unique values, even though, when concatinating the 3 lookup fields, it is (or at least should be) unique on the lookup table.
 
Thoughts?
6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Crowbarella,

 

Could you please tell me if your problem was resolved? Could you please share the answer or mark the proper answer as solution if it's convenient for you? That will be a help to the others.

Best Regards!
Dale

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

Well, the question as posed was never answered in a way that worked for me, but I found where the issue lied elsewhere. So, I'd calling it work around found. I was able to generate a table, filtering out the nulls, that gave me uniqueness and related that to ther original table.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Crowbarella,

 

In this scenario, we could create a bridge table which has unique value. Then the relationship could be: many -> unique<- many. If one table has all the data, the formula could be ([class] could be [group] or [date]):

BridgeTable = values('actualtable'[class])

 Or union all the values:

 

BridgeTable =
DISTINCT ( UNION ( VALUES ( 'actualtable'[class] ), VALUES ( 'lookup'[class] ) ) )

Trying to pull data from unrelated table into a matrix.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Power BI does not support creating a relationship that uses multiple columns.  The typical work around is to create a calculated column that concatenates the columns into 1.

Yup. Done that. Still having problems.

Anonymous
Not applicable

So, if you successfully created a relationship (and make sure the relationship is in the correct direction -- lookup table is the "one side" and data table is the "many side") -- the best debugging technique is to create a calculated column in the datatable like:

  Dbg = RELATED(LookupTable[SomeLookupColumn])

 

Which you expect to pull down values into the fact table, but... you will probably find they don't?

 

I'd check for extra/unexpected whitespace around values?

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.