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
asifrasool
Helper I
Helper I

Converting one Field to Multivalued Field based for each ID

Hello Everyone.
I'm currently facing a problem because of that my data is repeating.
My data source is our customer platform from which I'm making API call to get the data. Upon call it automatically expands the columns and there are some values which are coming multiple times for each customers. I want to convert them in order to get them in a row in each cell of corresponding ID.

This is what I'm getting from the system...

ids and numbers.PNG

How I want them

asifrasool_1-1659433919171.png

 

I hope you would have got the idea. 
Please guide me how to do that...

 

Thanks

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@asifrasool , refer if these approaches can help

 

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

View solution in original post

4 REPLIES 4
Bubble4502
Resolver III
Resolver III

Hi @asifrasool ,

 

Based on your description, I have created a simple sample:

Bubble4502_0-1660114885697.png

Please try:

Firrst create a summarized table:

Bubble4502_1-1660114962576.png

Then add a new column:

Column = CONCATENATEX(FILTER('Table',[ID]=EARLIER('Table 2'[ID])),[Value]," ")

 Final output:

Bubble4502_2-1660115051415.png

 

Kind Regards,

Bubble

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

 

Thank you so much @Bubble4502 you solution is awesome. I heartly appreciate your time. 🙂 this is why I love powerbi community. 

amitchandak
Super User
Super User

@asifrasool , refer if these approaches can help

 

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

Hi @amitchandak I reply late because I was checking how long this solution will work. It is working awesomely on my 10 different datasets and I have solved the problem. The only thing I had to consider was that I had to create a different table of id and code and then connect that to the main table. But anyway, it really worked amazingly. thank you so much

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.