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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anthony67
Frequent Visitor

Concatenate returning distinct values

Hello everyone,

I have a measure in a table that gets the concatenation of values in a different table:


ScheduelStartDates = CONCATENATEX('tct_schedule',DAY('tct_schedule'[CourseStartDate]),",",DAY('tct_schedule'[CourseStartDate]),ASC)

Works well, but since I have many days that are the same, I get an repetition of same values


e.g. 1, 1,  and 11, 11 etc.


I only need to get the distinct days ie 1,2 ,4


therefore i need something like

ScheduelStartDates = CONCATENATEX('tct_schedule',DAY(DISTINCT('tct_schedule'[CourseStartDate])),",",DAY('tct_schedule'[CourseStartDate]),ASC)

This doesn't work.

I have tried moving DISTINCT earlier.. doesnt work either.

Help would be appreciated!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Try to use VALUES() over the course start date column. 

 

ScheduleStartDates = CONCATENATEX('tct_schedule',VALUES(DAY('tct_schedule'[CourseStartDate])),",")

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Try to use VALUES() over the course start date column. 

 

ScheduleStartDates = CONCATENATEX('tct_schedule',VALUES(DAY('tct_schedule'[CourseStartDate])),",")

Hi,

 

You're a champion!! Thank you.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.