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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Can any one please help me to derive below Type Flag as column from Main Num and Alternate Number based on below logic.
if Main Num not present in Alternate Number list then it's parent
if Main Num is present in Alternate Number and also Alternate Number is present in Main Number list then it's Child- Parent
if Main Num is present in Alternate Number and Alternate Number is not present in Main Number list then it's Child
i have tried below custom column in power query but it's not working for all above three conditions.
#"Added Custom" = Table.AddColumn(#"Filled Down", "Flag", each if List.Contains(#"Filled Down"[number],[associated number]) then "Parent" else "Child")
Solved! Go to Solution.
Sample PBIX file attached
https://1drv.ms/u/s!AiUZ0Ws7G26Rhi2jpvD7fOkAITh-?e=HY6A8c
Sample PBIX file attached
https://1drv.ms/u/s!AiUZ0Ws7G26Rhi2jpvD7fOkAITh-?e=HY6A8c
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |