Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
nrichards_au
Helper I
Helper I

Create Dax Table using Many to Many

I have two tables that unfortunately are not in a database environment or this would be simple and I'd exploit a cartesian product to get what I need

 

T1
Year|Region|Growth

2023|A|50
2023|B|80
....

2024|A|100
2024|B|200

T2
Year|Week|WK_ID
2023|1|202301
2023|2|202302
....

2024|51|202451

2024|52|202452

 

Many:Many on the Year field

 

Desired Output

WKID|Region|Growth
202301|A|50

202302|A|50
202303|A|50

Any ideas?

1 ACCEPTED SOLUTION
Wilson_
Memorable Member
Memorable Member

Hello nrichards_au,

 

Can you use power query to do this instead of DAX? If so, you should be able to merge the two tables, joining on the year column.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Wilson_
Memorable Member
Memorable Member

Hello nrichards_au,

 

Can you use power query to do this instead of DAX? If so, you should be able to merge the two tables, joining on the year column.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Just implemented this about 15 mins prior to your post. I had totally forgotten about the join functions of PQ and happened to be in the load editor and saw the icon.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.