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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Card Visual to display applied filter

So I have a report with a date filter applied and I would like to display the filter range in a Card as part of the report. Using a measure I have able to show the applied filter values ie. 03/12/19, 27/01/19, 17/12/19 etc but I can't get it to display the actual filter itself.

 

I am using Advanced filtering to specify a range for example "is on or after 01/12/2019 AND is before 01/02/2020"

 

Any thoughts on how this could be achieved?

 

Thanks,

 

2 ACCEPTED SOLUTIONS
Tad17
Solution Sage
Solution Sage

Hey @Anonymous 

 

One of these threads should have your solution:

 

1. https://community.powerbi.com/t5/Desktop/Display-slicer-values-selected-in-card/td-p/559294

2. https://community.powerbi.com/t5/Desktop/Display-a-range-of-dates/td-p/141013

 

If this helps please kudo.

If this solves your problem please accept it as a solution.

View solution in original post

amitchandak
Super User
Super User

Show this measure on card

 

Measure =

var _min = minx(date,date[date])

var _max = maxx(date,date[date])

 

Return

_min & " " _max

 

If needed use format. like format(_min,"mm/dd/YYYY")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Show this measure on card

 

Measure =

var _min = minx(date,date[date])

var _max = maxx(date,date[date])

 

Return

_min & " " _max

 

If needed use format. like format(_min,"mm/dd/YYYY")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

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

I initially thought that this was resolved however all of the suggestions so far don't quite resolve the issue. for example, I want it to display exactly what is entered into the advanced filter ie. 01/12/19 - 01/01/20 however all of the suggested solutions only show the first and last filtered values so it may show 04/12/19 - 19/12/19.

 

I need to display the full date range and not just the highest and lowest values once the filter is applied, any ideas?

Hey @Anonymous 

 

Just add the SELECTEDVALUE() function to soem of the suggestions.

Tad17
Solution Sage
Solution Sage

Hey @Anonymous 

 

One of these threads should have your solution:

 

1. https://community.powerbi.com/t5/Desktop/Display-slicer-values-selected-in-card/td-p/559294

2. https://community.powerbi.com/t5/Desktop/Display-a-range-of-dates/td-p/141013

 

If this helps please kudo.

If this solves your problem please accept it as a solution.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors