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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
UserMFA
Frequent Visitor

Select ALL vs No Selection !!!

Hello,

Any help please !

I need to have to behavor of mesure :

1- If the user clear the slicer then value should be 0 (as shown below)

1.PNG

 2- il select ALL is selected then show total value (sum) : the result below is not ok !

2.PNG

The problem is that isfiltred hase the value FALSE if SelectALL is selected or nothing is selected !!!!

 

Here below mesures used for this : 

Selection Status =
VAR _selected =
    COUNTROWS ( VALUES ( Feuil5[year]) )
VAR _all =
    COUNTROWS ( DISTINCT ( ALL ( Feuil5[year]) ) )
RETURN
    IF (
        ISFILTERED (Feuil5[year] ),
        IF ( _selected <> _all, IF ( _selected > 1, "Multiple", "Single" ), "ALL" ),
        "Non"
    )
 
and the result is  : 
Calcul = IF(OR([Selection Status] in {"ALL","Single"},AND([Selection Status] ="Non",ISFILTERED (Feuil5[year]))),count(Feuil5[CCAS]),0)

 

 

Thank you in advance for your help

1 ACCEPTED SOLUTION
UserMFA
Frequent Visitor

I found finally the solution, it wasn't really simple and hope Power BI team developpement will found a basic solution for this issue

View solution in original post

1 REPLY 1
UserMFA
Frequent Visitor

I found finally the solution, it wasn't really simple and hope Power BI team developpement will found a basic solution for this issue

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.