Hi, I have the following measure to return previous row item based on consecutive date, work ok,
But when it's dropped in a pivot table its first value is filtered out, I'd like to keep it.
I know I could use pivot table options show items with no data, but would like to incorporate this into t the measure;
Ive tried using and IF statement, so IF measure returns a result , true, use the measure else put in a blank, but even though this has worked in the past
in this case it caused an error.
Richard.
Excel Formula:
PrevItem:=VAR maxd = MAX(Table1[Date])
RETURN LOOKUPVALUE(Table1[Item], Table1[Date],maxd-1)
I know I could use pivot table options show items with no data, but would like to incorporate this into t the measure;
Ive tried using and IF statement, so IF measure returns a result , true, use the measure else put in a blank, but even though this has worked in the past
in this case it caused an error.
Richard.