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

Comma separated list

Hi all,

I am having trouble processing data in power BI. 

Can you help me make all of FABRIC CODE each OUT DOCUMENT become a row (the fabric code a comma separated list).

I am very grateful for this.

Thank you!!!

Nhiiiii_0-1660720664996.png

 

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@Nhiiiii 

maybe you can try this

Measure = CONCATENATEX(values('Table'[farbric code]), 'Table'[farbric code],",")
1.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

I missed this reply.

maybe you can try to change to ISFILTERED('Table'[month])

changed the doc column to month column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

19 REPLIES 19
Nhiiiii
Helper I
Helper I

Nhiiiii_0-1660722204775.png

My data source same this

ryan_mayu
Super User
Super User

@Nhiiiii 

maybe you can try this

Measure = CONCATENATEX(values('Table'[farbric code]), 'Table'[farbric code],",")
1.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes, thank you!

I have done it before. However, my source data contained a lot of rows... and they outputted everything.

Do you have any other way?

Nhiiiii_0-1660721400805.png

 

do you mean duplicated fabric code?

 

i tried to reproduce the situation, the measure does not combine the repeate fabric code.

1.PNG

 

could you pls provide the sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Oh Yes I made it... Woww... thank you, thank you so much 😘

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nhiiiii_1-1660723223464.png

Wow, that is result of your formula... only it doesn't follow OUT DOCUMENT

you need to remove the " farbric doe customer " column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nhiiiii_0-1660722822897.png

the same this... 

Data row is very large. Looks like I need to filter them before using CONCATENATEX... but I don't know how to make

@Nhiiiii 

still can't reproduce the issue.

1.PNG

is it possbile to share the pbix file after removing sensitive data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




do you have a way to not have to show its total on the report table?

Nhiiiii_0-1660724590809.png

 

 turn off the total

1.PNG

 

 

or 

 

update the DAX

 

Measure = if(ISFILTERED('Table'[DOC]), CONCATENATEX(VALUES('Table'[farbic code]),'Table'[farbic code],","))

2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nhiiiii_0-1660726440459.png

I don't know why I use this formula it's not run

Measure = if(ISFILTERED('Table'[DOC]), CONCATENATEX(VALUES('Table'[farbic code]),'Table'[farbic code],","))

  

you can also try this

 

Measure = if(HASONEVALUE('Table'[doc]),CONCATENATEX(VALUES('Table'[fabric code]),'Table'[fabric code],","))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I missed this reply.

maybe you can try to change to ISFILTERED('Table'[month])

changed the doc column to month column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




It's okay... thank you so much!!!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




wow, I'll use the 2nd method... because I also need to show total of some other columns.

you are really cool

thank you!!!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.