Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkumargowda
Creator
Creator

concatenation in calculated dimension

Hi Guys,

I have a table which resembles like below Emp table. I need to concatenate Dept column with respect to other columns (as shown in expected result) and also country selection in list box should not effect this straight table.  Please let me know how can I achieve this.

Emp:  

Emp IdCountryDept
1USSales
1USIT
2INSales
2INHR

Expected result:  

Emp IdCountryDept
1USSales, IT
2INSales, HR

I tried to use Concat function (concat(total <Id> Dept,', ')) and added one more dummy measure (sum({<Country=>}1)) to exclude country selection, but it is not working, as Concat can only be used inside measure.

1 Solution

Accepted Solutions
manojkumargowda
Creator
Creator
Author

I have found the solution for this, I have used calculated dimension expression as =aggr({<Country=>}concat(Dept,', '),Id).

View solution in original post

1 Reply
manojkumargowda
Creator
Creator
Author

I have found the solution for this, I have used calculated dimension expression as =aggr({<Country=>}concat(Dept,', '),Id).