Forum Discussion

jamuka's avatar
jamuka
Helper IV
7 years ago

Running Total based on two value

Hello,

 

I'm using Power BI for the first time and I stucked in running totals. I need to sum my forecast amount based on stock location (Store, Warehouse and Without Stock).

 

I want to show running totals of each articles and for Store & Warehouse Locations.

 

 

Item NoStock LocationForecast AmountExpected Result
8Store1515
8Warehouse1515
7Warehouse1227
1Store1037
1Warehouse1037
5Store744
6Store650
2Without Stock5 
4Without Stock4 

 

 

Also when I do it based on forecast amount it sums same article twice, 

 

 

RunningTotal_S+WS = 
VAR GT = Sheet1[Forecast Amount]
RETURN
SUMX (
FILTER (
Sheet1;
Sheet1[Forecast Amount]>= GT
);
Sheet1[Forecast Amount])

 

 

2 Replies