Forum Discussion
JP007
3 years agoNew Member
Need help to get lastnonblank value
Hi all, looking for some help here... i just can't figure it out. I need to show the total for days that I don't have a value using the last available balance. i.e. January 3 should be showing m...
v-zhangti
Community Support
3 years agoHi, JP007
You can try the following methods.
Measure:
LastBalanceID = CALCULATE(SUM(DepositData[Balance]),LASTDATE( 'Dates'[Date]) )TestPreviousDay = CALCULATE([LastBalanceID],FILTER(ALL(Dates),[Date]=SELECTEDVALUE(Dates[Date])-1))Measure = IF([LastBalanceID]=BLANK(),[TestPreviousDay],[LastBalanceID]-[TestPreviousDay])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.