This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello,
I have 3 tables in the following format and I want to dynamically merge (full outer join) 2 tables at any given time on Fiscal Qtr and Fiscal Month based on paramter that I would like specify in Power BI.
TABLE 1 FORMAT
| Fiscal Qtr | Fiscal Month | Data 1 | Data 2 |
| FY20Q3 | Month 1 | Prod A | X |
| FY20Q3 | Month 1 | Prod B | Y |
| FY20Q3 | Month 1 | Prod C | Z |
TABLE 2 FORMAT
| Fiscal Qtr | Fiscal Month | Data 1 | Data 2 |
| FY20Q3 | Month 2 | Prod A | X |
| FY20Q3 | Month 2 | Prod B | Y |
| FY20Q3 | Month 2 | Prod C | Z |
TABLE 3 FORMAT
| Fiscal Qtr | Fiscal Month | Data 1 | Data 2 |
| FY20Q3 | Month 3 | Prod A | X |
| FY20Q3 | Month 3 | Prod B | X |
| FY20Q3 | Month 3 | Prod C | Z |
The Fiscal Month in the 3 tables are "Month 1", "Month 2" and "Month 3"
I want Power Query to merge on either of following combinations based on user parameters:
ON Table1. Month 1= Table2. Month 2
ON Table1. Month 1= Table3. Month 3
ON Table2. Month 2= Table3. Month 3
How can this be achieved?
You will need to provide some real data per links below. I'm not going to mock something up that misses your goal. That will waste both of our times.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum
The crux of the matter is though you will dynamically replace the join table names in the Table.NestedJoin() statement, which is easy to do as you are just referring to other tables. I haven't tried this, but I suspect you can even use an if/then/else construct in the table parameters to return the table you want.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |