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
paw1
Helper I
Helper I

how to apply not null in List.contains in power bi

Hi,

I need to create a custom column like below.

Logic: 

if Main Num not repeated in Alternate Num and Alternate Num is not blank then it's parent else child

 

Please help me to apply  not null of alternate number condition in below logic 

=[A=ah[Main Num],
B=ah[Alterante Num],
to=
if not list.contains(B,[Main Num]) and not null of alternate number then "Parent" else child

1 ACCEPTED SOLUTION

4 REPLIES 4
Ahmedx
Super User
Super User

perhaps instead of null you will need to write two quotes ""

Ahmedx
Super User
Super User

what type of column b is it text or numbers?
Share some data to work with (in a format the can be pasted in an MS Excel file) and show the expected result.

Hi @Ahmedx 

 

Thanks for your help. It's the same scenario from this post. https://community.powerbi.com/t5/Desktop/Custom-Column-Creation-help/m-p/3124183#M1057680

 

I am looking for In first condition how to apply Alternate Num is not blank extra condition?

 

paw1_3-1678958185118.png

 

 

 

Screen Capture #609.png

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.