Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 218204

SUMIF Calculate SUM based on subset of Collumns

$
0
0

I have a challenge on a Specific DAX formula.
I have one tabel containing A CustomerID, Week and a Value. I would like to add a Calculated Collumn that sums the Value of the Specific Customer in the Same Week. 
It should look like the result below;

Cust | Week | Value | SUM

A      |    1     |   2,5  | 6,5

A      |    1    |    4     | 6,5
A      |    2     |   2,5  | 5

A      |    2     |   2,5  | 5
B      |    1     |   5     | 6

B      |    1     |   2     | 6

B      |    2     |   5     | 10
B      |    2    |   5      | 10
C      |   1      |   8     |  8
C      |    2     |   8     |  8
C      |   3      |   8     | 8

C      |   4      |   8     | 8

I've treid using CALCULATE, SUM and SUMX but i wasn't albe to create the above results. 
I've also read different items on the "SUMIF" function but i couldn't find a way of sum that checks 2 identifying collumns (Cust. and Week)

I hope that someone could help me on this matter?


Viewing all articles
Browse latest Browse all 218204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>