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.
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.
It works perfectly! Thank you!
- Anonymous5 years agoNot applicable
Hi,
My table is getting created in PowerBI model itself and I dont have the same coming from the query. It is essentially a bigger challenge that I am trying to solve with this exercise- I will be tabulating this and assigning a variable to this table and use it in my next calculation, hence wanted to use DAX for this, please help!
- 110974865 years ago
Helper I
I tried with CALCULATE but it doesn't work with string. I unfortunately wasn't able to find a solution...