Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
erric3210
Creator
Creator

MonthName function with Concat Issue

Hi All,

The below string is generated in Text box. I've used Concat() function on MonthYear field.

I've this string: Nov 2021, Dec 2021, Jan 2022, Nov 2023
I want this output: Nov, Dec 2021, Jan 2022, Nov 2023

This is just a sample data. Actually, there are number of years.

Someone please help.

Regards,

Eric

Labels (1)
1 Reply
mpc
Partner Ambassador
Partner Ambassador

Hi, 

Concat can use 3 paramaters, and the third one is the sort order.

So Concat(distinct [MonthYear], ',', [MonthYear]) should work if MonthYear is a Date type field. 

In my test app:

maximepiquetcointe_0-1712666846724.png

Concat(distinct [Date de la vente.Cal.AnnéeMois], ',', [Date de la vente.Cal.AnnéeMois])

Regards

From Next Decision and mpc with love