Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Am not understanding the last result...the -355. Would have expected a return of 9.
Am also curious if someone can provide insight in how to modify the code to evaluate to BLANK() for the very first row given that there is no previous value to compare to and return a correct result?
Thanks!
Solved! Go to Solution.
Hi,
This formula works
=if(ISBLANK(LOOKUPVALUE([Activs Cnt Col],Data[Data Date],CALCULATE(max([Data Date]),FILTER(Data,[Data Date]<EARLIER(Data[Data Date]))))),BLANK(),[Activs Cnt Col]-LOOKUPVALUE([Activs Cnt Col],Data[Data Date],CALCULATE(max([Data Date]),FILTER(Data,[Data Date]<EARLIER(Data[Data Date])))))
Your original version called for the max of [Activs Cnt Col] where the date was earlier than the current row. Look at all the values in that column on earlier dates. Of all the values on dates before 7/1, the max was 733 on either 4/30 or 5/3.
Perhaps you thought your formula would return the value of [Activs Cnt Col] where the date was the max before the current row? But that's not what your formula actually says.
Proud to be a Super User!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
117 | |
101 | |
71 | |
61 |