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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Jay2077
Helper III
Helper III

concatenating titles on Power bi using concatenatex?

so hypothetically speaking say i have a list of writers in column A and then the books they have written in column B the writers are repeated in the first next to every book they have written.  Say max books by one author approx 10

 

Some writers appear only once 

 

I want all books by that particular author to be contatnmated so if i filter by a writer in a card and or table i see all the books they have written listed in one column so to speak. I have tried something like below but its not working 

 

all = concatenatex('works','works'[Books},",  ") 

 

any help greatly appreciated.

1 ACCEPTED SOLUTION

@Jay2077 , Values is a dax function. You can directly use below formula:-

all = CONCATENATEX ( VALUES ( 'works'[Books] ), [Books], "," )

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Jay2077
Helper III
Helper III

Thank you what do you mean by values ? Do you mean 

 

all = CONCATONATEX( Allbooks ('works'[Books] ), [Books], "),"  )

 

or 

 

all = CONCATONATEX( ADDCOLUMNS ('works'[Books] ), [Books], "),"  )

@Jay2077 , Values is a dax function. You can directly use below formula:-

all = CONCATENATEX ( VALUES ( 'works'[Books] ), [Books], "," )

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Samarth_18
Community Champion
Community Champion

Hi @Jay2077 ,

 

If you could share sample data in text format and expected output then it would be more helpful to answer.

But you can try below code:-

 

all = CONCATENATEX ( VALUES ( 'works'[Books] ), [Books], "," )

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.