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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors