Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table with 10 columns. The first 5 have fixed column names. The last 5 have column names that I would like renamable by a layman according to needs. These last 5 columns are also ones that I need to write measures for with DAX.
Is it possible to reference the columns by their number instead of their name? For example, first column might be Table[0], second column might be Table[1] ... etc.
I am thinking if referencing by number is possible, I can store this in a variable and then reference the column dynamically when writing my measures.
Or if there is a better way, please let me know, I only have very basic DAX knowledge.
Solved! Go to Solution.
No, it's not possible to have dynamic columns and/or DAX. Column names must be known at the time of data load and can't be changed afterwards dynamically by the user. Also, in DAX there is no concept of column order and indexing into them with a number.
And I'm afraid what you'd like to pull off is not possible in DAX at all 😞
No, it's not possible to have dynamic columns and/or DAX. Column names must be known at the time of data load and can't be changed afterwards dynamically by the user. Also, in DAX there is no concept of column order and indexing into them with a number.
And I'm afraid what you'd like to pull off is not possible in DAX at all 😞
Thank you. Appreciate the information.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |