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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.