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
prashantg364
Helper II
Helper II

DAX column

I am having data as per the below input table.

Now I want to create a new column where if the cluster name is the same then I want to concatenate the band else result in band available in the existing column. refer output table to understand my requirement.

pls help


input table

 

CircleClusterBand17_KPIs
BRBR-ARRH-000170012
BRBR-ARRH-0001350010
BRBR-ARRH-000270015
BRBR-BGLP-0003350010
BRBR-BGLP-000470015
BRBR-BGLP-0004350016

 

 

Output table

 

CircleClusterBand17_KPIsNew column
BRBR-ARRH-000170012700
BRBR-ARRH-0001350010700,3500
BRBR-ARRH-000270015700,3500
BRBR-BGLP-00033500103500
BRBR-BGLP-000470015700,3500
BRBR-BGLP-0004350016700,3500
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @prashantg364 ,

 

I suggest you to try code as below to create a calculated column.

New column = CONCATENATEX(FILTER('Table','Table'[Cluster] = EARLIER('Table'[Cluster])),'Table'[Band],",")

Result is as below.

vrzhoumsft_0-1689757616455.png

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @prashantg364 ,

 

I suggest you to try code as below to create a calculated column.

New column = CONCATENATEX(FILTER('Table','Table'[Cluster] = EARLIER('Table'[Cluster])),'Table'[Band],",")

Result is as below.

vrzhoumsft_0-1689757616455.png

 

Best Regards,
Rico Zhou

 

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

 

lbendlin
Super User
Super User

There is no sort oder in Power BI. How are you identifying the "first" entry per cluster?  or should all rows in your expected result say 700,3500 ?

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.