Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
beaubellamy
Partner - Contributor III
Partner - Contributor III

Concatenate distinct values based on grouping by different fields

This is similar to this question, which solution i've tried.

I would like to create a list of days that a trip is run. As an example here is a single trip id, that runs 4 days in a short period, based on the date of operation, I would like to create a list of all the days that this trip ran, ie "Tues, Wed". 

beaubellamy_0-1612756388943.png

I am currently generating a list that seems to be all weekdays with the below script.

Load
TRIP_ID,
Concat(DISTINCT Day,',') as DayList
Resident temp_st
Group By TRIP_ID;

I think i need to include the OPERATING_DAY, somehow to get the correct list. Can the community tell me what I'm doing wrong and help create the desired list for each row.

Labels (2)
1 Solution

Accepted Solutions
rubenmarin

Hi @beaubellamy, maybe with:

Concat(Distinct WeekDay(OPERATING_DAY), ',')

View solution in original post

1 Reply
rubenmarin

Hi @beaubellamy, maybe with:

Concat(Distinct WeekDay(OPERATING_DAY), ',')