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
dkm
New Member

Count number of unselected names in a slicer based on date slider

@amitchandak

@Greg_Deckler 

 

Hello. I have a chiclet slicer with a list of patient names and a date slicer/slider. When I change the date range with the date slicer (dates of appointments), the number of patient names listed in the chiclet slicer changes accordingly (i.e. total number of unselected patient names listed is 2,420 and when the date slicer is changed, the total number of unselected patient names listed in the chiclet slicer is 42). I would like the count of customers listed in the chiclet slicer to be shown in a card each time a date range is changed in the date slicer without having to select any customer names.

 

What it looks like before I change the date slider:

image001.png


What I need it to look like after the date slider is changed:

image002.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dkm , if the name and date are coming from the same table or related table then the count should change

 

 

other wise you can force filter like

 

new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max

&& Table[patient names] in values(patient[patient names])))

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @dkm ,

 

Whether the advice given by @amitchandak  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

amitchandak
Super User
Super User

@dkm , if the name and date are coming from the same table or related table then the count should change

 

 

other wise you can force filter like

 

new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max

&& Table[patient names] in values(patient[patient names])))

Many thanks to you!

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.