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! Request now
Hi, I have a table called Table1 with a column called "Table name" saving names of other tables. I am looking to read name from a cell in Table1[Table name], save in a string variable and then refer to that table by the string variable. I am wondering how to do that in M Language or DAX? Thanks!
Solved! Go to Solution.
@Anonymous
Try using LookupValue DAX and then ConcatenateX DAX to bring all the value in a string.
LookupValue : https://youtu.be/jPrxonHLGDs
ConcatenateX : https://youtu.be/hPQXNDLiHkI
Multiple values in 1 row Power Query : https://youtu.be/g3uofBDly9w
Thanks & Regards,
Mohammed Adnan
Learn Power Platform from my channel TAIK18 click on the link
@Anonymous
Try using LookupValue DAX and then ConcatenateX DAX to bring all the value in a string.
LookupValue : https://youtu.be/jPrxonHLGDs
ConcatenateX : https://youtu.be/hPQXNDLiHkI
Multiple values in 1 row Power Query : https://youtu.be/g3uofBDly9w
Thanks & Regards,
Mohammed Adnan
Learn Power Platform from my channel TAIK18 click on the link
Thanks for your reply. Once i get the table name in the string, how to refer to it in DAX and M? E.g.
TableName = "Table2"
Can I do something like #TableName to refer to that table?
Use Expression.Evaluate function to reference another table with a string variable in Power Query
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks for your reply. I am a Power Query beginner. Can i ask what does #Shared mean in the expression.evaluate function?
LOOKUP,RELATED or SELECTEDVALUE functions may work for you. Do you have a sample dataset to share?
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.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |