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
weinerheineken
Frequent Visitor

Specific transformation on table

Hi Everyone, as you can see below, I have data in the format in the "Initial Table" that I'd like to transform to the ones in the "Transformed Table".
Specifically, I'd like to group my data by order number but the resulting value should be a string in this format
<Quantity><Product>-<Quantity><Product>-...-<Quantity><Product>

But first sorted by Product.

 

weinerheineken_0-1665638111927.png

 

Is there a way to perform this in PowerBi in Power Query, please?

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@weinerheineken , Create a measure

 

concatenateX(Table, Table[Product] & "-" & Table[Quantity], ",")

 

 

refer: Concatenate Text- Measure, DAX Table, and Power Query Table: https://youtu.be/xAh3tz1qo24

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@weinerheineken , Create a measure

 

concatenateX(Table, Table[Product] & "-" & Table[Quantity], ",")

 

 

refer: Concatenate Text- Measure, DAX Table, and Power Query Table: https://youtu.be/xAh3tz1qo24

 

Thank you very much. Technics in the YouTube video have been extremely useful.

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.