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
DavidB023
Helper III
Helper III

If with two column

 

Hi everybody !

 

I want to create an if function between two tables.

 

In fact, if I have nothing in a specific column in my second table, my personalize column (my function) take the number 3.

 

I try with contain but unsuccessful.

 

Here is my example : Table 1

2017.PNG

 

 Table 2

 

2018.PNG

 

 My two tables have same rows.

Thanks

Best regards

David

1 REPLY 1
quentin_vigne
Solution Sage
Solution Sage

Hi @DavidB023

 

You can simply use = or <> with LEFT() or RIGHT()

 

For example your date is 01/01/2018 and you want to verify if it contains 2018 type :

 

Column = IF(RIGHT(Table[DateColumn];4)="2018";0;3)

 

Hope this help

 

- Quentin

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.