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
Raki39
Frequent Visitor

Setting default slicer value based on a condition

Hi All,

Is there any way to set the default value based on the condition?

EX: I have a number column and a flag. Here I need to have a slicer with number columns and the default selection would be based on the flag where the flag value=Y then that related number value has to be selected by default.

Thanks in advance,

Rakesh

3 REPLIES 3
truptis
Community Champion
Community Champion

Hi @Raki39 ,

Try creating a new field in Power Query using this:
if Flag = "Y" then "defaultvalue" else "value"

 

In place of defaultvalue and value, you can put a column name else the default value that you need.

 

@Raki39 -> If this helps you then please mark it as a solution and hit the thumbs up. Thank you.

Hi @truptis  Thank you for the response. Here In my case, I dont have the previlage to create new column as the connection is a live connection. is there any way that I can do it writing a measure?
So sorry I missed to mention it.

Hi @Raki39 ,

 

As per my knowledge, this feature is not supported yet in Power BI slicer.

You can use bookmarks to set a stand default filter button, and another as clear all filters


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.