Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I really stuck here to fill in the gap. I failed to use LASTNONBLANKVALUE, Please help!!
Solved! Go to Solution.
HI @Anonymous ,
Test the below to create a new column:
newaverage =
IF (
'Table'[average] = BLANK (),
CALCULATE (
MAX ( 'Table'[average] ),
FILTER (
ALL ( 'Table' ),
'Table'[average] <> BLANK ()
&& 'Table'[Date] >= EARLIER ( 'Table'[Date] )
)
),
'Table'[average]
)
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
HI @Anonymous ,
Test the below to create a new column:
newaverage =
IF (
'Table'[average] = BLANK (),
CALCULATE (
MAX ( 'Table'[average] ),
FILTER (
ALL ( 'Table' ),
'Table'[average] <> BLANK ()
&& 'Table'[Date] >= EARLIER ( 'Table'[Date] )
)
),
'Table'[average]
)
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
I just checked your result, there is a bug need to debug.
Hi @Anonymous ,
Thank you for pointing this out, I have made the adjustment, see below:
newaverage =
VAR MAXDATE =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER (
ALL ( 'Table' ),
'Table'[average] <> BLANK ()
&& 'Table'[Date] >= EARLIER ( 'Table'[Date] )
)
)
RETURN
CALCULATE (
MAX ( 'Table'[average] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] = MAXDATE )
)
Best Regards
Lucien
Hi babyjb123
You have given very little infomation. Please give detailed infomation when postng question on the forum. Thank you. Have you tried using Fill down in the columns in the query editor?
🙁
User | Count |
---|---|
98 | |
91 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |