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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
iLoveTea
Frequent Visitor

Sum values of parent and subsequent children

Hello my dear community, 

 

1. Here's my problem in an image as it is worth a 1000 words :

iLoveTea_0-1669299481270.png

As you can see above, the bold row ".trk.trk02.trk02-1.AMPHENOL.GEP.LOT2" is the sum of all GEP.LOT2 children in yellow.

The problem is it doesnt count the row NOT in bold ".trk.trk02.trk02-1.AMPHENOL.GEP.LOT2" in blue.

 

The measure _DureeJour is calculated as follows  = IF(sum(ACT_activite[sec_spend_time])=0,BLANK(),CONCATENATE(trunc(sum(ACT_activite[sec_spend_time])/(3600*8),3)," J"))

 

The measure _DureeHM is calculated as follows

= IF(sum(ACT_activite[sec_spend_time])=0,BLANK(), CONCATENATE(CONCATENATE([Duree_H],"h"),CONCATENATE([Duree_M],"m")))

 

2. Here's what i would like to have :

 iLoveTea_1-1669299633434.png

Thanks,

 

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @iLoveTea 

 

It is because ".trk.trk02.trk02-1.AMPHENOL.GEP.LOT2" is under parent ".trk.trk02.trk02-1.AMPHENOL.GEP" rather than ".trk.trk02.trk02-1.AMPHENOL.GEP.LOT2" itself in the matrix currently. 

vjingzhang_0-1669366586022.png

Can you show how this parent column and its child column display in their data table? 

If ".trk.trk02.trk02-1.AMPHENOL.GEP.LOT2" row has got the expected result "62.428 J", should ".trk.trk02.trk02-1.AMPHENOL.GEP" row be updated with a new total value (= 41.562 + 62.428)? 

 

Best Regards,
Community Support Team _ Jing

hi @v-jingzhang 

 

Here my table :

 

dfs29_0-1669369246026.png

Thanks 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.