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

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

Reply
HansZuijd
Regular Visitor

Merge multiple selected slicer items in a string

Hi,

i've created the below slicer and want to display the selected items on a card. the output should look something like "2017 (Q3, Q4), 2018, 2019, 2020 (Q1)"
HansZuijd_0-1666019668190.png

any ideas on how to realise this?

kind regards, 

Hans

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Selected Quarters
VAR SummaryTable =
	SUMMARIZE( 'Date', 'Date'[Year], 'Date'[Quarter] )
Var Txt = CONCATENATEX( VALUES('Date'[Year]),
	VAR Yr = 'Date'[Year]
	VAR Qrs = CONCATENATEX(
		FILTER( SummaryTable, 'Date'[Year] = Yr),
		'Date'[Quarter],
		", "
	)
	RETURN Yr & " ( " & Qrs & ")",
	", "
)
RETURN Txt 

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Try

Selected Quarters
VAR SummaryTable =
	SUMMARIZE( 'Date', 'Date'[Year], 'Date'[Quarter] )
Var Txt = CONCATENATEX( VALUES('Date'[Year]),
	VAR Yr = 'Date'[Year]
	VAR Qrs = CONCATENATEX(
		FILTER( SummaryTable, 'Date'[Year] = Yr),
		'Date'[Quarter],
		", "
	)
	RETURN Yr & " ( " & Qrs & ")",
	", "
)
RETURN Txt 
amitchandak
Super User
Super User

@HansZuijd , Not exact the same but you can try something like this example

 

concatenatex(Date, Date[Quarter] & "-" Date[Year], " , " )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.