Forum Discussion

amalsperera's avatar
amalsperera
Frequent Visitor
3 years ago
Solved

Dax to sum value grouped by two columns

Hi,

 

I have the following stock table

 

DateMaterialBatchStockvalue
9/13/2023A2100
9/12/2023A2150
9/10/2023B175
9/9/2023A2200
9/5/2023A15

 

A stock record will only be written if there is a transaction for that stock.

 

I need to get the total value of the stock. 

 

Eg. if I check the stock value for 9/13/2023 for Material A the value should by 105 as Batch number 1 will have a value 5 and batch number 2 will have a value 100. 

 

How do I get this done using Dax. 

 

Thanks in advnce

 

Amal

8 Replies