Forum Discussion

petercowen's avatar
petercowen
Frequent Visitor
6 years ago
Solved

Converting SUMIF latest v previous dataset in same table

I need some help converting a simple excel sumif in to the correct DAX equation

 

I have a single table that contains multiple weeks worth of data and I want to be able to compare the week's quantity versus last week's, but I cannot get it to pull the data in.  

 

 

Columns A to C are as per the data sets loaded and, if it was Excel, I'd create column D to make them unique.  The equation below is how I'd get the Last Week data to show, but I cannot convert this to a DAX formula that works

 

=SUMIF(D:D,A2&(B2-1),C:C)

 

 

1 Reply