Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |