The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I was wondering how to replace non null values in a column with the column title, what would be the best code to do this?
Thanks!
Kind regards
Valeria
Solved! Go to Solution.
=Table.TransformColumns(PreviousStepName,{"ColumnName",each if _=null then _ else "ColumnName"})
thank you!
=Table.TransformColumns(PreviousStepName,{"ColumnName",each if _=null then _ else "ColumnName"})