Sum function depending other columns

blackcat18

New Member
Joined
Jun 12, 2014
Messages
1
Hi every one,

I am starting to use DAX Expression in Power Pivot. i would like to know how I could summarize a column depending another.
Like =sum([CA]) where [ID] has the same value.

I think it is a simply formula but I did not find how to write it. I was trying:

=CALCULATE(sum([CA]);ALL(RPT_PerformanceBuvette_CA_Total[OPFSessID]))

but the result is exactly the number in the [CA] cell.

Regards
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
it seems todays questions can be answered all with the same formula :)

=calculate(sum(RPT_PerformanceBuvette_CA_Total[CA),filter(RPT_PerformanceBuvette_CA_Total,RPT_PerformanceBuvette_CA_Total[OPFSessID]=earlier(RPT_PerformanceBuvette_CA_Total[OPFSessID])))
 
Upvote 0
it seems todays questions can be answered all with the same formula :)

=calculate(sum(RPT_PerformanceBuvette_CA_Total[CA),filter(RPT_PerformanceBuvette_CA_Total,RPT_PerformanceBuvette_CA_Total[OPFSessID]=earlier(RPT_PerformanceBuvette_CA_Total[OPFSessID])))

haha seems so :) everybody say calculate() ist the ultimate thing...but the car won't drive without the engine ;)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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