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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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