Forum Discussion
Anonymous
9 years agoNot applicable
Get Last 3 Non Blank values from a Column
Hello All, I have table as follows. Here i need to get the values of 5/31/2017, 5/30/2017 and 5/29/2017 values from comments columns if my table contains comments column as I.e ...
Greg_Deckler
Community Champion
9 years agoWill have to do some work on this, but how about something like this?
Last3Blanks = var LastBlank = CALCULATE(MAX('Calendar'[Date]),FILTER('Calendar','Calendar'[Comments]=""))
RETURN CONCATENATEX(CALCULATETABLE(VALUES('Calendar'[Date]),FILTER('Calendar','Calendar'[Date]<=LastBlank && 'Calendar'[Date] >= LastBlank-2)),'Calendar'[Date],",")- Anonymous9 years agoNot applicable
Thanks for the reply Greg_Deckler
I did tried what you have suggested.
i didnt get any errors but i didnt get any output also.
- Greg_Deckler9 years ago
Community Champion
Hmm, what data set are you using with that? Looks OK formula-wise. I did not try the use case where there are no blanks.
- Anonymous9 years agoNot applicable
Greg_Deckler please have a look at the below reply.
I have given info about the data that i am working.