Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Tried to Google it, but didn't find the answer, sorry...
How to get the name of the current column with a query?
| Column_name_1 | Column_name_2 | Column_name_3 | 
| 123 | 234 | = how to put "Column_name_3" here using a query? | 
Solved! Go to Solution.
Hi @yshmelev ,
trying to understand what you want to achieve here.
But if you create this column with a Table.AddColumn-step, then you have to hardcode it. 
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data  -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @yshmelev ,
trying to understand what you want to achieve here.
But if you create this column with a Table.AddColumn-step, then you have to hardcode it. 
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data  -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
