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],",")Anonymous
9 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.