Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie777
Partner - Creator III
Partner - Creator III

Formula similar to ConcatenateX in Power BI

Hello,

I'd appreciate it if you could let me know if there are aggregate function of texts like ConcatenateX in Power BI.   I'd like to concatenate the employee names from the employee table with the calculation like number of years of tenure in a text string.  I am thinking something like below for the tenure expression which addresses the issue of multiple changes of departments for some employees:

Newbie7_0-1629632764420.png

 

and I'd like to combine the above with the employee name in a text string, so that I'd get a text string output like

Employee 1 (2 years), Employee 2 (15 years), Employee 3 (3 years)

I'd greatly appreciate your help.

Thanks,

 

 

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

3 Replies
Newbie777
Partner - Creator III
Partner - Creator III
Author

OK. I found out that something like the expression below achieves the ConcatenateX effect in Qlik Sense.

Aggr(Concat(distinct([First name last name])&', '),[Department])

Regarding the tenure, I'd like the measure to respect the time dimension, and I am wondering instead of Today(2), which syntax I can use to indicate the max of the selected date from the time dimension, as the number of years of service is not static and changes with respect to the selected date in the time dimension.  

Thanks for your help.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Max(dateField)

Newbie777
Partner - Creator III
Partner - Creator III
Author

Thanks a lot.  It works.