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
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
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.