Forum Discussion
eurenergy
2 years agoFrequent Visitor
How to avoid using "hard coded" column names in my M code?
Hi all, I recently spoke with a consultant who is very proficient in using Power BI. He mentioned that his #1 rule was to avoide using hard coded column names in his M code. I understand what he ...
Anonymous
2 years agoNot applicable
Hi eurenergy ,
You can replace hard-coded column references with dynamic references.
For more detailed information, please refer to the following links:
Solved: Replace hard coded column reference with dynamic r... - Microsoft Fabric Community
How to Handle Dynamic Columns using M query in Power BI | by Datasciencedaemon | Medium
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.