Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have a table with a date column. I want to create a new column that will look at the latest "Brand" value and put it in the entire column. in this case : latest value is 1 feb 23 therefore we should put "AAA" in the entire column.
How can in please achieve that ?
thanks
Solved! Go to Solution.
Hi,
measure, not column
thanks for your help !
As Olga said, use a measure, not a column
I'd do it differently though.
FIRST OF ALL, disable auto time detection - otherwise the last date is going to be way later than your actual date.
File - options and settings - options - current file - data load - time intelligence - unclick "Auto date/time for new.."
Then use this in a MEASURE. You may have to change the table/column names to fit your data.
Lookuplast =
VAR Last = MAX('Table'[Datecolumn])
RETURN
LOOKUPVALUE('Table'[Brand], 'Table'[Datecolumn], [Last])
thank you !
Hi,
measure, not column
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |