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

If statment between 2 dimensions table

Hi,

 

I want to create a dax column with something like that :

If  Table1[ColumnA] = "Something",

Then Table2[ColumnB],

Else Table1[ColumnA]

 

Table1 and 2 aren't related and can't be related. There are also 2 table between these.

There are in a schema like this :

CeliaP_0-1674656243776.png

Because my tables aren't related, I can't use a simple related fonction.
Someone have an idea how to solve it ?

 

Thanks !

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CeliaP , You need to bring in the columnB in Table1 or columnA in Table2

 

In the New column in Table1

 

MAxx(filter(Table2, Table1[Key] = table2[Key]) , Table2[ColumnB])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@CeliaP , You need to bring in the columnB in Table1 or columnA in Table2

 

In the New column in Table1

 

MAxx(filter(Table2, Table1[Key] = table2[Key]) , Table2[ColumnB])

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.

Top Solution Authors