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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.