Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi all,
Novice PowerBI user here. I have a few queries that I have loaded within a workbook, and I'm attempting to create a column within that table that looks at ANOTHER table, takes the latest date we have (in this case, would be 6/14/2021), and populates the column with it.
Is there some easy way to figure this out, or am I grasping at straws?
Solved! Go to Solution.
Hey @Anonymous ,
this is not easy as one would hope, this is because referencing other tables (other queries) from within a query requires some M code.
Then you can consider using List.Max (<List.Max - PowerQuery M | Microsoft Docs) in combination with Table.SelectColumns (Table.SelectColumns - PowerQuery M | Microsoft Docs) to store the MAX date.
If you need more guidance, create a pbix that contains sample data, but still reflects your data model. Upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.
Regards,
Tom
Hey @Anonymous ,
this is great!
Maybe you will find some time to provide a short outline of your solution and mark your post as an answer, as this will help others who have similar questions.
Thanks,
Tom
Hi @Anonymous !
You can first create a relationship between these table, like any joining key which is common in 2 tables, then use RELATEDTABLE() DAX function to achive the results;
Regards,
Hasham
Hey @Anonymous ,
this is not easy as one would hope, this is because referencing other tables (other queries) from within a query requires some M code.
Then you can consider using List.Max (<List.Max - PowerQuery M | Microsoft Docs) in combination with Table.SelectColumns (Table.SelectColumns - PowerQuery M | Microsoft Docs) to store the MAX date.
If you need more guidance, create a pbix that contains sample data, but still reflects your data model. Upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.
Regards,
Tom
Thanks Tom! I actually sat down with a coworker who has a little more PowerBI experience than I do and we were able to use your suggestion to find an effective solution!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 18 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 42 | |
| 40 | |
| 40 | |
| 40 |