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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Krcmajster
Helper IV
Helper IV

Duplicate values from another table based on a list

Hi everyone

I want to create a table where the values are duplicated based on a list. I believe it’s easier on example

Table1
Id value1 value2.
1
2
3


List on which duplicates are made (not a table, just need these values)
A
B
C

Table2
ID. List value
1. A
1. B
1. C
2. A
2. B
2. C
3. A
3. B
3. C

Thanks
1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

Hello @Krcmajster

 

You would need to perform a CROSS JOIN:

 

Table = 
CROSSJOIN(
    DATATABLE( "ID", INTEGER, { {1}, {2}, {3} } ),
    DATATABLE( "Value", STRING, { {"A"}, {"B"}, {"C"} } )
)

 


 


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


Proud to be a Datanaut!  

View solution in original post

2 REPLIES 2
LivioLanzo
Solution Sage
Solution Sage

Hello @Krcmajster

 

You would need to perform a CROSS JOIN:

 

Table = 
CROSSJOIN(
    DATATABLE( "ID", INTEGER, { {1}, {2}, {3} } ),
    DATATABLE( "Value", STRING, { {"A"}, {"B"}, {"C"} } )
)

 


 


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


Proud to be a Datanaut!  

Thanks @LivioLanzo I adjusted a bit but that did the trick

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors