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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
Is there a way to check if all values in a specified filter are selected using DAX functions knowing that number of choices in filter are limited?
Thanks in advance 😊
Solved! Go to Solution.
@MohannadSh1996 , not very clear.
Any value is filtered can be checked with isfiltered
example: if not filtered display 0 else count
Count Brant not all = if(ISFILTERED('Item'[Brand]),DISTINCTCOUNT('Item'[Brand]),0)
refer : https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Hi @MohannadSh1996 ,
You can create a measure as below:
Count of selected items =
VAR _selClient =
ALLSELECTED ( 'Table'[Client] )
RETURN
CALCULATE ( COUNT ( 'Table'[Client] ), 'Table'[Client] IN _selClient )
You can also refer the contents in the following links to get it.
Get selected or multiple values from slicers using DAX
How to count how many items are selected on a Slicer
Best Regards
Rena
@MohannadSh1996 , not very clear.
Any value is filtered can be checked with isfiltered
example: if not filtered display 0 else count
Count Brant not all = if(ISFILTERED('Item'[Brand]),DISTINCTCOUNT('Item'[Brand]),0)
refer : https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
@amitchandak, I have tried it, it seems a good solution :), quick question please, do you know why i got 0 if i selected "Select All" in the filter? and how to return the number of all distnict values if "Select all" is choosen?
@amitchandak & @Pragati11, to make the question more clear:
I want to check if Select All from a slicer is chooen?
Hi @MohannadSh1996 ,
You can create a measure as below:
Count of selected items =
VAR _selClient =
ALLSELECTED ( 'Table'[Client] )
RETURN
CALCULATE ( COUNT ( 'Table'[Client] ), 'Table'[Client] IN _selClient )
You can also refer the contents in the following links to get it.
Get selected or multiple values from slicers using DAX
How to count how many items are selected on a Slicer
Best Regards
Rena
Hi @MohannadSh1996 ,
I didn't understand your question. Can you explain in detail with some screesnhots or sample data? Try sharing your DAX as well.
Thanks,
Pragati
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.