cancel
Showing results for 
Search instead for 
Did you mean: 
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

@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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@NickProp28 , Try concatenateX

concatenateX(Table, [Notes])

 

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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!