Forum Discussion
Find previous blank value in previous rows
- 5 years ago
Hi 11097486 ,
You can create a calculated column like this:
Re = CALCULATE ( MAX ( 'Table'[Date1] ), FILTER ( ALL ( 'Table' ), 'Table'[Date1] < EARLIER ( 'Table'[Date1] ) && 'Table'[Column1] = BLANK () ) )Attached a sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
can you provide some dummy data in text form?
Hello, the data is the first 2 columns of the print screen. Thank you
- vanessafvg5 years ago
Community Champion
you need to provide in a usable format, you cannot copy and paste that. If you need help its preferable you provide it in a usable format.
How do you know the sequence of the data is it date sorted? what if you have duplicates or is it unique dates only?
- 110974865 years ago
Helper I
Hello, yes it is date sorted and there won't be any duplicates. I cannot insert files. Creating the table should take 2 minutes... Thank you
- v-yingjl5 years ago
Community Support
Hi 11097486 ,
You can create a calculated column like this:
Re = CALCULATE ( MAX ( 'Table'[Date1] ), FILTER ( ALL ( 'Table' ), 'Table'[Date1] < EARLIER ( 'Table'[Date1] ) && 'Table'[Column1] = BLANK () ) )Attached a sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.