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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Oleander
Helper I
Helper I

Address the Component status as a Parent or a child depending on Hierarchy Path

I have a BOM and want to set  a Parent or a child status due to position in a Hierarchie Path:

LevelCompParentImm ParentHiarchy
Parent101101 101
11002101101101|1002
.210081011002101|1002|1008
11003101101101|1003
.210091011003101|1003|1009
.210081011003101|1003|1008
11010101101101|1010
11004101101101|1004
.210111011004101|1004|1011
.210051011004101|1004|1005
..310121011005101|1004|1005|1012
..310131011005101|1004|1005|1013
.210051011004101|1004|1005
..310071011005101|1004|1005|1007
...410141011007101|1004|1005|1007|1014
...410151011007101|1004|1005|1007|1015
...410161011007101|1004|1005|1007|1016
...410171011007101|1004|1005|1007|1017
..310181011005101|1004|1005|1018
..310191011005101|1004|1005|1019
..310201011005101|1004|1005|1020
11021101101101|1021

 

I want to address the Component status as this :

 

LevelCompParentImm ParentHiarchyComp Status
Parent101101 101Parent
11002101101101|1002Parent
.210081011002101|1002|1008Child
11003101101101|1003Parent
.210091011003101|1003|1009Child
.210081011003101|1003|1008Child
11010101101101|1010Child
11004101101101|1004Parent
.210111011004101|1004|1011Child
.210051011004101|1004|1005Parent
..310121011005101|1004|1005|1012Child
..310131011005101|1004|1005|1013Child
.210051011004101|1004|1005Parent
..310071011005101|1004|1005|1007Parent
...410141011007101|1004|1005|1007|1014Child
...410151011007101|1004|1005|1007|1015Child
...410161011007101|1004|1005|1007|1016Child
...410171011007101|1004|1005|1007|1017Child
..310181011005101|1004|1005|1018Child
..310191011005101|1004|1005|1019Child
..310201011005101|1004|1005|1020Child
11021101101101|1021Child
1 ACCEPTED SOLUTION
Oleander
Helper I
Helper I

Sorry , I didn't see it myself:

"=if(BOM[Level]="Parent";"Parent";IF(CONTAINS(BOM;BOM[Imm Parent];BOM[Comp]);"Parent";"Child"))"

View solution in original post

1 REPLY 1
Oleander
Helper I
Helper I

Sorry , I didn't see it myself:

"=if(BOM[Level]="Parent";"Parent";IF(CONTAINS(BOM;BOM[Imm Parent];BOM[Comp]);"Parent";"Child"))"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.