Total Of All The Child Of The Parent-DAX

Madel

New Member
Joined
Feb 11, 2017
Messages
4
Hi All,
This's My 1st Time In This Great Site.
I Want To Make It As Calculated Column Not a Measure
The Table As Below :

Parent------ Child------ QTY-Child
P1------------ CH1------------ 6
P2------------ CH2------------ 5
P1------------ CH3------------ 2
P1------------ CH4------------ 1
P2------------ CH5------------ 0

To be:
Parent--------------------Child--------------------Child QTY-------------TotalChildOfTheParent
P1------------------------ CH1------------------------ 6------------------------ 9
P2------------------------ CH2------------------------ 5------------------------ 5
P1------------------------ CH3------------------------ 2------------------------ 9
P1------------------------ CH4------------------------ 1------------------------ 9
P2------------------------ CH5------------------------ 0------------------------ 5
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Thank You FY Interesting,

1- QTY=Sold QTY Not Stock QTY.
2-The Parent Can Be Sold As It's Parent And It Can Convert To Child
So, I Need It As It's
If You Can Support.
 
Upvote 0
OK Dears,
Resolved By The Below :
=CALCULATE(SUM(Table[Column QTY]),ALLEXCEPT(Table,Table[Column Of Parent]))
 
Upvote 0
OK Dears,
Resolved By The Below :
=CALCULATE(SUM(Table[Column QTY]),ALLEXCEPT(Table,Table[Column Of Parent]))

Thank you! i have been searching Power BI forums trying to get to this for a week now.

@Matt, one other reason to have these in the same table is so that you can use it as a ranking to show all child rows of the parent by parent rank.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top