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
I have 5 tables in Edit query
i want to append these 5 Tables and create a custom column that is the table names
how can i do that by M Query?
HI @Asamadi,
I'd like to suggest you define a custom table with table names and these tables which you mentioned.
then expand table column to achieve your requirement.
Sample:
let
Source = #table(type table[#"Source"=text, #"Detail"=table], {{"Table1",#"Patient Link"},{"Table2",#"Patient"},{"Table3",#"Patient Review date"},{"Table4",#"Smoking"},{"Table5",#"Smoking status"}})
in
Source
Expand:
Reference link:
Creating Tables In Power BI/Power Query M Code Using #table()
Regards,
Xiaoxin Sheng
that is not a solution in my opinion and i am lookign to do the same thing
Trya nd implement from the link shared.Hope this helps 🙂
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.