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
leoruizb
New Member

creating new columns conditionally

Hi

I want to create a new column but always get the same error:

question1.jpg

I used this command:

Column = IF(kardex[ing_cant]=0, "usuario", "proveedor")

just for test the if and work perfect but I can not get the data for the field that I want with this command:

Column = IF(kardex[ing_cant]=0, vp_user[user_nm1], df_proveedor[prov_nm])

thanks

bye

Leo

1 ACCEPTED SOLUTION
AkhilAshok
Solution Sage
Solution Sage

Try this way:

 

Column = IF(kardex[ing_cant]=0, RELATED(vp_user[user_nm1]), RELATED(df_proveedor[prov_nm]))

View solution in original post

2 REPLIES 2
AkhilAshok
Solution Sage
Solution Sage

Try this way:

 

Column = IF(kardex[ing_cant]=0, RELATED(vp_user[user_nm1]), RELATED(df_proveedor[prov_nm]))

Thanks a lot

I really appreciate your help

 

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.