Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone,
I have a column that shows two different informations.
I would like to create a custom column where it will return a True/False if a value in Column A (Component) appears in Column B (Immediate Parent).
Thank you for your help and support!
Solved! Go to Solution.
Hi @Anonymous
You can add a custom column with below code. Notice that you need to modify "Previous Step" accordingly. For example, "Changed Type" is the previous step in my example, so I used it as shown in below image. If you want to add it after "Added Conditional Column" step, you should use "Added Conditional Column" instead.
List.Contains(#"Previous Step"[Immediate Parent],[Component])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous
You can add a custom column with below code. Notice that you need to modify "Previous Step" accordingly. For example, "Changed Type" is the previous step in my example, so I used it as shown in below image. If you want to add it after "Added Conditional Column" step, you should use "Added Conditional Column" instead.
List.Contains(#"Previous Step"[Immediate Parent],[Component])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
NewStep=let a=List.Buffer(PreviousStepName[Immediate Parent]) in Table.AddColumn(PreviousStepName,"Custom",each List.Contains(a,[Component]))
Need one help from you. If you can tell us True should appear for which values in the data posted by you, that would be great.
👍 It's been a pleasure to help you | Help Hours: 11 AM to 9 PM (UTC+05:30)
How to get your questions answered quickly -- How to provide sample data
Hi @Vijay_A_Verma
If values from Column Component is present in Column Immediate Parent, then a custom column should return as TRUE. If it is not present then FALSE.
Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |