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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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