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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
mg
New Member

Parent / Child Relation + Multiply

Hi !

 

Ive the following table. 

Ive succeeded with Power BI to sum for A (=B+F) and B(=C+D+E) through a parent / child relationship. 

Nevertheless, i wd like to add a mark-up on A and B meaning B = (C+D+E)*1,07 and A =(B+F)*1,07. 

Any suggestion would be highly appreciated 🙂

Many thanks 

 

ITEMPathIDLevel of Current ElementTypeCurrent ElementCurrent Element Issue IndexParent ElementParent TypeParent Issue IndexQuantity (link only)DesignationUnit Price 
AD572480000040DASSYD57248000004ASNULLDASSYNULLNULLWING BOX STRUCTURE GA
BD57248000004 / D572480060101DASSYD57248006010MD57248000004DASSYAS1.0000000BOLTING PNL 1 FS BTM
CD57248000004 / D57248006010 / ABS0548VHK4-062STDPTABS0548VHK4-06NULLD57248006010DASSYM25.0000000PIN,SWAGELOCKINGCSK50
DD57248000004 / D57248006010 / ASNA2025-42STDPTASNA2025-4NULLD57248006010DASSYM220.0000000COLLAR,SWAGELOCKING100
ED57248000004 / D57248006010 / D572502082162DDPTD57250208216L03D57248006010DASSYM2.0000000PLUG SEALING1000
FD57248000004 / ABS0548VHK6-121STDPTABS0548VHK6-12NULLD57248000004DASSYM7.0000000PIN,SWAGELOCKINGCSK3000
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @mg,

 

I'd like to suggest you take a look at below link which mentioned about how to use path function to create custom hierarchy for analysis.

Parent-Child Hierarchies

 

Sample:

Level 1 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 1 )
	
Level 2 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 2 )
	
Level 3 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 3 )

Add hierarchy columnAdd hierarchy columnCreate custom hierarchyCreate custom hierarchyCreate matrix visualCreate matrix visual

 

Notice: I add visual level filter to remove blank value.

 

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @mg,

 

I'd like to suggest you take a look at below link which mentioned about how to use path function to create custom hierarchy for analysis.

Parent-Child Hierarchies

 

Sample:

Level 1 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 1 )
	
Level 2 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 2 )
	
Level 3 =
VAR replaced =
    SUBSTITUTE ( [PathID], " ", "" )
RETURN
    PATHITEM ( SUBSTITUTE ( replaced, "/", "|" ), 3 )

Add hierarchy columnAdd hierarchy columnCreate custom hierarchyCreate custom hierarchyCreate matrix visualCreate matrix visual

 

Notice: I add visual level filter to remove blank value.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.