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
juan_123
Frequent Visitor

Relate two tables via three different categories (multiple relations)

Hi, I have two different tables with prices.

The first table has dates, products and expiration date.

The second table has dates, crops and a different set of expiration dates. 

 

I need to select connect both tables through each of these three variables. How can I do that?

juan_123_0-1677186490389.png

For example. I need to compare FASt from "Aceite de soja" 4-2023 with "Soja", 1/5/2023 for the same date. How can I relate both tables to select via those categories?

 

Many thanks!
Juan

1 ACCEPTED SOLUTION

Hi @amitchandak thanks for the answer! I was just thinking about that after posting. Will try combinevalues. Thanks!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@juan_123 , Based on what I got. Create a concatenated column and use that to join. In case of direct query create it using combinevalues

https://learn.microsoft.com/en-us/dax/combinevalues-function-dax

Hi @amitchandak thanks for the answer! I was just thinking about that after posting. Will try combinevalues. Thanks!

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.