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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sebastian_ebg
Helper I
Helper I

Concatenate values between a period

I'm trying to get a comma separated list of all the values in a field that relate to an individual time period. There can be multiple overlapping promotions, hence the use of CONCATENATEX().

 

The data model I have is quite simple:

Data Model

 

I can get the exact desired effect as a calculated column in the DateCal table by using the following formula: Current Promotions = CALCULATE(CONCATENATEX(Promotions,Promotions[Promo Name],", "),FILTER(Promotions,Promotions[Begin Date]<=DateCal[Date]&&Promotions[End Date]>=DateCal[Date]))

 

I just can't get the formula to work as a measure so that I can dynamically filter based on date (and add it as a tooltip).

 

What am I missing to get this working?

1 ACCEPTED SOLUTION
sebastian_ebg
Helper I
Helper I

I managed to work this out myself using effectively the same formula. It now works perfectly for what I need it for.
 
Will leave the post here if anyone else has the same question 🙂
 
Promotions =
CALCULATE (
    CONCATENATEX ( Promotions, Promotions[Promo Name], ", " ),
    FILTER ( ALL ( Promotions ), Promotions[Begin Date] <= MAX ( DateCal[Date] ) ),
    FILTER ( ALL ( Promotions ), Promotions[End Date] >= MIN ( DateCal[Date] ) )
)

View solution in original post

1 REPLY 1
sebastian_ebg
Helper I
Helper I

I managed to work this out myself using effectively the same formula. It now works perfectly for what I need it for.
 
Will leave the post here if anyone else has the same question 🙂
 
Promotions =
CALCULATE (
    CONCATENATEX ( Promotions, Promotions[Promo Name], ", " ),
    FILTER ( ALL ( Promotions ), Promotions[Begin Date] <= MAX ( DateCal[Date] ) ),
    FILTER ( ALL ( Promotions ), Promotions[End Date] >= MIN ( DateCal[Date] ) )
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors