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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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