Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.