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
Julian_H
Helper II
Helper II

Slicers and Filtering

Hi

 

I have had a request from a work collegue to be able to filter by the value selected  in  the slicer and a defualt value.

 

e.g. slicer has  A B C D E in it

The selection is C which will filter the data to show C data

However I need to show C data plus Z data (a default value)

 

Values C and Z live in the same columnin the table

 

The slicer cant show Z as an option 

 

Please cna nay one help ?

 

Thank you

10 REPLIES 10
bhelou
Responsive Resident
Responsive Resident

bhelou_0-1709458014111.png

Try puting it directly in the filter 

Hi That wouldnt work as it needs to be based on the slicer selection plus Z

No worries, will keep digging 🙂

bhelou
Responsive Resident
Responsive Resident

Hello , if you can share some sample it would be better to know what is the issue 

Unfortunatley this quite sensitive data so cant actually supply a proper example , so here a mock up

Julian_H_0-1709224691583.png

 

bhelou
Responsive Resident
Responsive Resident

Hi , you can put it in a card or a table , 

for filter just drag and drop anything you want to make filter for it and set the conditions . 

hope this worked with you , if not share some sample of the PBIX file to go through it 

Hi 

I get the following when set up as a measure

 

Julian_H_0-1709043694166.png

 

kleigh
Responsive Resident
Responsive Resident

Have you tried putting in brackets like (Accounts[Earnout_BoBNAme] = SelectedValue) ||  (Accounts[Earnout_BoBNAme] = "Z")  ?

Sometimes when combining expressions with || the parts associate with a priority that does not match what might be expected. 

Sorry but that doesnt work either

 

bhelou
Responsive Resident
Responsive Resident

Try this : 
Filtered_Data =
VAR SelectedValue =
SELECTEDVALUE('Your_Table_Name'[Column_Name]
)
RETURN
FILTER( 'Your_Table_Name', 'Your_Table_Name'[Column_Name]
=
SelectedValue
||
'Your_Table_Name'[Column_Name] = "Z"
)


Thank you for replying.

 

Would you set this as a measure then add it in to the "Filters on this visual" section 

Julian_H_0-1709040564635.png

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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