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
Anonymous
Not applicable

Using Dynamic labels for date hierarcy slicer

Hello, I'm wondering if someone has a solution for creating a dymanic label while using a data hierarcy slicer.  I'm trying to create a label that will display year and qtr but display these with the year associated with them for example if I choose 2020 Q4 and 2021 Q1 my label will show "2020, 2021, Qtr 1, Qtr 4", currently I'm using the concatenate quick measure to accomplish this (see my label below).  Is there a way to show the Year/Quarter/Month/Dates selected together like:  "2020 Qtr 4, 2021 Qtr 1" Here's my slicer and my label: 

 

Year Qtr values.PNGDate Slicer.PNG

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

To what I can see you are using the auto datetime, try the following measure:

 

 

Label Year/quarters =
CONCATENATEX (
    SUMMARIZE ( 'Table', 'Table'[Date].[Year], 'Table'[Date].[Quarter] ),
    'Table'[Date].[Year] & 'Table'[Date].[Quarter],
    ", "
)

MFelix_0-1619083436189.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

To what I can see you are using the auto datetime, try the following measure:

 

 

Label Year/quarters =
CONCATENATEX (
    SUMMARIZE ( 'Table', 'Table'[Date].[Year], 'Table'[Date].[Quarter] ),
    'Table'[Date].[Year] & 'Table'[Date].[Quarter],
    ", "
)

MFelix_0-1619083436189.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thank you Miguel Felix! This is exactly what I needed and it worked!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors