Forum Discussion
Get Last 3 Non Blank values from a Column
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.
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.
- v-qiuyu-msft9 years ago
Community Support
Hi Anonymous,
You can also create a index column in Power Query with code below:
Then create a measure:
Last3Blanks = var l= CALCULATE(MAX('Calendar'[Index]),FILTER(ALL('Calendar'),'Calendar'[Task]=MAX('Calendar'[Task]) &&'Calendar'[Comment]=BLANK() ))
return
CONCATENATEX(CALCULATETABLE('Calendar',FILTER('Calendar','Calendar'[Index]<l && 'Calendar'[Index]>=l-3)),'Calendar'[Date],",")You can download attached .pbix file.
Best Regards,
Qiuyun Yu- prateekraina9 years ago
Memorable Member
Hi v-qiuyu-msft,
Out of curiosity, how did you attach the zip file in a reply? :D
Regards,Prateek Raina