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
Anonymous
Not applicable

Create a String from colums

Hello, 

I want to create a string like follows: "The opened calender weeks are CW21/CW20/CW19/CW18".

I have a column with starting with the latest calender week, like this:
CW21

CW20
CW19

CW18
CW17
CW16
CW15

...

 

I always need the first 4 lines (here: 21,20,19,18). 

How can i get a string just like shown above? 

 

Thanks!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
I would be something like

"The opened calender weeks are " &
CONCATENATEX ( TOPN ( 4, VALUES ( TableName[Column1] ), DESC ), TableName[Column2], "/")

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
I would be something like

"The opened calender weeks are " &
CONCATENATEX ( TOPN ( 4, VALUES ( TableName[Column1] ), DESC ), TableName[Column2], "/")

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.