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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
thhmez7
Helper III
Helper III

New column: Every distinct data value gets multiple values

Hi,

 

in an existing table I'd like to create a new DAX column which contains multiple values for an existing field. For example:

thhmez7_0-1664897168350.png

The new column has the values X, Y, Z. So each Product should get X, Y, Z.

Thank you.

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @thhmez7 

Thanks for reaching out to us.

>> The new column has the values X, Y, Z. So each Product should get X, Y, Z.

please try this,

(1)  create a new table

 

NEW TABLE = CROSSJOIN('Table',XYZ)

 

vxiaotang_0-1664949036585.png

(2) open power query editor, 

vxiaotang_1-1664949676026.png

vxiaotang_9-1664949882469.png

vxiaotang_8-1664949860265.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @thhmez7 

Thanks for reaching out to us.

>> The new column has the values X, Y, Z. So each Product should get X, Y, Z.

please try this,

(1)  create a new table

 

NEW TABLE = CROSSJOIN('Table',XYZ)

 

vxiaotang_0-1664949036585.png

(2) open power query editor, 

vxiaotang_1-1664949676026.png

vxiaotang_9-1664949882469.png

vxiaotang_8-1664949860265.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Hi,

I cannot enter XYZ at creating table in crossjoin:

thhmez7_1-1665041818851.png

2nd argument should be a table again here

 

thanks again.

Hi @thhmez7 

Thanks for your reply.

XYZ is a table name.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.