Forum Discussion
Malinpetersson
6 years agoRegular Visitor
Yesterday or day before
Hi! I need a mesure that brings the value back if ther is a value yesterday and if not it will bring the value from the day before yesterday, or before that day, last year. The value I am looking...
az38
6 years agoCommunity Champion
it is not Power QUery question, as I understand. Better use DAX or Desktop forum sections
I do not clearly understand what your desired result but maybe you should try a measure like
Measure =
var _lastDayWithData = CALCULATE(MAX(Table[Date]); NOT(ISBLANK(Table[Summa Fakturerat])) )
RETURN
CALCULATE(SUM(Table[Summa Fakturerat]); Table[Date]=_lastDayWithData )
for better response please provide data example and desired output