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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mants
Frequent Visitor

Create String based on results in table in report

Dear, 

 

I have a report with multiple slicers and a results table. The results in the table are determined by the slicers. 

I would like to create a string to be presented in the report, composed of the ProjectCode values that would change based on the status of the slicers. 

 

For instance if after applying slicers the table shows:

 

ProjectCode
PROJECT-1
PROJECT-2
PROJECT-3

 

The string to appear in a separate visual in the report will be

 

"PROJECT-1,PROJECT-2,PROCET-3"

 

Is such a function possible and how could i best do that?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Mants 
You can use concantenatex formula to achieve it.
Create a measure with code :

test = CONCATENATEX(VALUES('Table'[ProjectCode]),[ProjectCode],",")
Ritaf1983_0-1692180621869.png

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Mants
Frequent Visitor

Thank you so much! this was the solution i was looking for. so if i understand correctly, adding "VALUES" filters the table column based on the active slicers in the report?

 

Ritaf1983
Super User
Super User

Hi @Mants 
You can use concantenatex formula to achieve it.
Create a measure with code :

test = CONCATENATEX(VALUES('Table'[ProjectCode]),[ProjectCode],",")
Ritaf1983_0-1692180621869.png

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors