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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
MYDATASTORY
Resolver I
Resolver I

How to count Date Filter selected on Slicer

Hi,

I have a date Slicer which has all the  Date column and I have formatted date to Month to be used on Slicer

I would like to have a measure for every time the user selects Month Slicer to count and add total so for this one will be 2  because the user has selected to Month on Month slicer. Thank you in advance
Date                    Month  (Formatted month from date column)

01/2/2020           February2020

3/4/1960             April1960

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @MYDATASTORY ,

 

You could use ALLSELECTED() to get the status of slicer. Here is the measure for your reference.

 

Measure =
IF (
    ISFILTERED ( 'Table'[Month] ),
    COUNTROWS ( ALLSELECTED ( 'Table'[Month] ) ),
    0
)

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @MYDATASTORY ,

 

You could use ALLSELECTED() to get the status of slicer. Here is the measure for your reference.

 

Measure =
IF (
    ISFILTERED ( 'Table'[Month] ),
    COUNTROWS ( ALLSELECTED ( 'Table'[Month] ) ),
    0
)

 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
mahoneypat
Microsoft Employee
Microsoft Employee

Do you just want the count of months the user has selected?  If so, you can make this measure and put it in a card visual, replacing Table with your actual table name that has the Month column.

 

Months Selected = DISTINCTCOUNT(Table[Month])

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Users online (8,752)