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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
arimoldi
Resolver II
Resolver II

Show Selected Filter Value "ALL"

Hi,

 

I want to create a card to display the selected values of a slicer, I created a measure in this way:

 

Display Name =
    IF(
        ISFILTERED(field_1),
        SELECTEDVALUE(field_1),
        "ALL"
    )
 
But when all the values in the filter are selected instead of "ALL" i get blank.
 
Do you why am I getting blank instead of "ALL" and how to solve it?
 
Thanks,
Andrea
1 ACCEPTED SOLUTION

I solved in this way:

 

IF( ISBLANK(IF(
    ISFILTERED(field1),
    SELECTEDVALUE(field1),
    "All"
)),"All",SELECTEDVALUE(field1))
 
Hope it could helps other.
 
Thanks!

View solution in original post

6 REPLIES 6
Fowmy
Super User
Super User

@arimoldi 

SELECTEDVALUE has a second parameter to show if the value selected is more than one of nothing is selected. Use your measure as follows:

Display Name =    SELECTEDVALUE(field_1, "ALL" )

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks,

 

now it correctly shows "ALL" when all the values of the filter are selected; do you how to use concatenatex to shows all the selected values of the filter (eg value1, value2)?

 

Thanks,

Andrea

@arimoldi 

in that case, use the solution provided by @Daniel29195 


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks,

 

I tried but in this way I can see all the values without the "ALL" when all the values are selected:

IF(
    ISFILTERED(num[delta]),
    calculate(CONCATENATEX(DISTINCT(field1), field1, ", ")),
        "All"
)
and with the Daniel solution with the SWITCH I get an error on few arguments
 
var rows_count =  countrows (all(field1))
var filtered_rows_count =  countrows( values(field1))

return
switch(
true(),
if (rows_count =  filtered_rows_count , "ALL",
concatenateX ( values(field1) , values(field1) , unichar(10))))
 
Do you have some suggestion?
 
Thanks,
Andrea
 

I solved in this way:

 

IF( ISBLANK(IF(
    ISFILTERED(field1),
    SELECTEDVALUE(field1),
    "All"
)),"All",SELECTEDVALUE(field1))
 
Hope it could helps other.
 
Thanks!
Daniel29195
Community Champion
Community Champion

@arimoldi 

 

use this measure : 

measure

var rows_count =  countrows (all(table_name[field_1]))

var filtered_rows_count =  countrows( values(table_name[field_1]))

 

 

return 

switch(

true(), 

if rows_count =  filtered_rows_count , "ALL", 


concatenateX ( values(table_name[field_1]) , values(table_name[field_1]) , unichar(10)) 

 

 

If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. I would appreciate hitting that kudos button 👍🤠

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.