Re: Calculate Difference from Previous 'Date' Dyna... - Microsoft Power BI Community
Cool question - using the query editory you can sort the table and add an index so that each row has a distinct number (0,1,2,3, etc). Here's the formula you want to write ... I broke it out into pieces. Total = SUM(Total) Total - Previous Period = VAR thisperiod = MAX(Index) RETURN CALCULATE ([...