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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lm_suresh
Frequent Visitor

Dynamic table based on values from 2 different tables

Hi

This is my Table structure. 

 

Table 1  Table 2  
NoItem NoSubcatDES
1A 1CAT1AAA
2B 2CAT2BBB
3C 3CAT3CCC
4D 4CAT4DDD
5E 5CAT5EEE

 

I have to Create Dynamic table as follows based on the values from above 2 tables.   can you please assist , how do I create in BI., 

NoITEMSUBCATDes
1ACAT1AAA
2ACAT2BBB
3ACAT3CCC
4ACAT4DDD
5ACAT5EEE
6BCAT1AAA
7BCAT2BBB
8BCAT3CCC
9BCAT4DDD
10BCAT5EEE
11cCAT1AAA
12cCAT2BBB
13cCAT3CCC
14cCAT4DDD
15cCAT5EEE
1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

@lm_suresh For this, you can first create a calculated table in Power BI by loading both Table 1 and Table 2. Then, use the DAX function GENERATE to create all possible combinations between the two tables. Next, you can add any additional columns like a sequential number or other needed columns using DAX functions like ADDCOLUMNS. Finally, use this new calculated table in your visuals to display the dynamic relationships between the values.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @lm_suresh,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @lm_suresh,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept  as  Solution" and give a 'Kudos' so other members can easily find it.

Thank you,
Pavan.

Anonymous
Not applicable

Hi @lm_suresh,

Thank you for reaching out in Microsoft Community Forum.

Thank you @ryan_mayu , @Akash_Varuna    for the helpful response.

As suggested by ryan_mayu, Akash Varuna.,  I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.

Please continue using Microsoft community forum.

Regards,
Pavan.

ryan_mayu
Super User
Super User

@lm_suresh 

you can try this to create a table

 

Table =
 var _tbl1=SELECTCOLUMNS('Table 1',"Item",'Table 1'[Item])
 return CROSSJOIN(_tbl1,'Table 2')
 
11.png
 
 




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

Proud to be a Super User!




Akash_Varuna
Super User
Super User

@lm_suresh For this, you can first create a calculated table in Power BI by loading both Table 1 and Table 2. Then, use the DAX function GENERATE to create all possible combinations between the two tables. Next, you can add any additional columns like a sequential number or other needed columns using DAX functions like ADDCOLUMNS. Finally, use this new calculated table in your visuals to display the dynamic relationships between the values.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.