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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.