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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |