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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Display the year on a card visual based on slicer settings

I'm working on a drill through page based on the total orders  for the month and year. On my report page I have a bar graph with the orders and a slicer with the year (2023 and 2024). 

 

On my drill through page I've figured out how to display the month on a card visual that is being drilled down but I cannot seem to display the year that I choose from the slicer. All that is displaying is the count of year.

 

Is there a DAX measure I can use to get around this bug? 

 

Screenshot (10).png

 

Screenshot (11).png

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous,

 

Create a measure similar to this and then use it on the card:

Selectsd Year = MAX(Table[Year])

I'm assuming you have a Year column on your model.


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

Yes that worked! Thanks!

MFelix
Super User
Super User

Hi @Anonymous,

 

Create a measure similar to this and then use it on the card:

Selectsd Year = MAX(Table[Year])

I'm assuming you have a Year column on your model.


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



Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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