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
NickProp28
Post Partisan
Post Partisan

Concatenate the sentences based on categories

Dear Community, 

 

I am doing the data cleansing for my raw data.

And would like to ask isit possible to concanate the notes in ascending (A-Z) based on Consol ID and Type.

NickProp28_0-1632291936087.png

The outcome is like this. 

NickProp28_1-1632291962356.png

Appreciate for any help provided. 

Thank you very much.

 

1 ACCEPTED SOLUTION

3 REPLIES 3
amitchandak
Super User
Super User

@NickProp28 , Try concatenateX

concatenateX(Table, [Notes])

 

concatenateX(distinct(Table[NOTES]), [Notes])

Dear @amitchandak ,

Thanks for your attention!

I tried this code, its work. But this took long time to run. Would like to ask is my code is correct?

Conc = CONCATENATEX(SUMMARIZE(FILTER(Concat,Concat[Consol ID ]=EARLIER(Concat[Consol ID ])&& Concat[Type]=EARLIER(Concat[Type])),Concat[Notes]),Concat[Notes],"/")
NickProp28_0-1632294007432.png

Btw, the result doesnt show in asceding form and I would like to have this new measure in new table. 
Example:

NickProp28_1-1632294135480.png

Greatly appreciate if you could give some feedback.



 

@NickProp28 , A measure would be faster

you can use order by and order by expression

https://docs.microsoft.com/en-us/dax/concatenatex-function-dax

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.

Top Solution Authors