Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have table that contains the columns date and column - and I would like the results in "column_wanted_result".
-> Basically the code should pick the latest non "x" value according to the tables sorting which is done from newest date to oldest
What would be the best way to do this? Preferably in M since I might need to reuse the column.
date | column | column_wanted_result |
20220201 | x | wanted_value |
20220101 | wanted_value | wanted_value |
Solved! Go to Solution.
@FatherTheWizard , A measure like
lastnonblankvalue(Table[date], max(Table[column]))
or
try a new column
lastnonblankvalue(Table[date], (Table[column]))
@FatherTheWizard , A measure like
lastnonblankvalue(Table[date], max(Table[column]))
or
try a new column
lastnonblankvalue(Table[date], (Table[column]))
Yep this should work if I first replace x to null. Thanks.
User | Count |
---|---|
106 | |
88 | |
82 | |
76 | |
73 |
User | Count |
---|---|
112 | |
103 | |
96 | |
74 | |
67 |