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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,215,334
Messages
6,124,321
Members
449,154
Latest member
pollardxlsm

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