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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
tgo
Frequent Visitor

Concatenate Rows in Visual

Hi all,

 

I was wondering if it was possible to concatenate rows in visual. 

 

I have data like that:

Name+Age Name Age

Michel-33    Michel 33

George-15   George 15

Jordan-33    Jordan  33

 

The column Name + Age is already a concatenation of Name and Age. When I apply the filter in the visual on Age:33 I would like to obtain

Michel-33                            Michel                         33

Jordan-33                            Jordan                         33

Michel-33 / Jordan-33         Michel/Jordan        33/33

 

I'm struggling to obtain the last row and I'm wondering if it's possible to do so? Do you have any idea?

 

Thanks in advance

1 ACCEPTED SOLUTION

@tgo,

 

Remove VALUES function and the column name, just use the table name.

Community Support Team _ Sam Zha
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

3 REPLIES 3
tgo
Frequent Visitor

I succeed it by using the quick measure / concatenate. The problem is that Values function remove the duplicate and I have a need to keep the duplicate. Does anyone have an idea of a function that could replace the "Values" function?

 

List of Scientific Name Part values =
VAR __DISTINCT_VALUES_COUNT = DISTINCTCOUNT('AMP_MA'[Scientific Name Part])
VAR __MAX_VALUES_TO_SHOW = 5
RETURN
IF(
__DISTINCT_VALUES_COUNT > __MAX_VALUES_TO_SHOW;
CONCATENATE(
CONCATENATEX(
TOPN(
__MAX_VALUES_TO_SHOW;
VALUES('AMP_MA'[Scientific Name Part]);
'AMP_MA'[Scientific Name Part];
ASC
);
'AMP_MA'[Scientific Name Part];
"- ";
'AMP_MA'[Scientific Name Part];
ASC
);
", etc."
);
CONCATENATEX(
VALUES('AMP_MA'[Scientific Name Part]);
'AMP_MA'[Scientific Name Part];
"- ";
'AMP_MA'[Scientific Name Part];
ASC
)
)

@tgo,

 

Remove VALUES function and the column name, just use the table name.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft

 

As simple as that. 

 

Thanks a lot

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.