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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
carlol
Helper IV
Helper IV

Default filter

I have RLS implemented 

The issue is for a user with all Access , I do not want to illustrate a graph with all options , too busy 

 

My Solution is to idenify the min ID assocaited with the Filter , have a generic name "Default" ; regardless of the options avaialble , it will always illustrate Default option based on what the user has access to 

 

I am struggling with implemation Step 2 , assigning the min ID in the list with default ; the dax treats each value on there own merit versus returing the min ID from the list 

 

Example

Out of all countries the User only has access to the below (User depending this list is dynamic)

 

List 

1 Germany

2 Italy

3 France

4 USA 

5 China

 

Min Value here 1 : I want to assign Germany a Country name of , "Default"  and the other countries in the list the Country Name 

 

Step 1 : In realtime , based on options avaialbe return min ID so we can assign value of Default  

 

HospIDMin = Min( DimHospital[HospID] )
 
 Result is 1 , Germany

 

Step 2 : Assign min ID value Default 

 

HospSlicer =
 
VAR HospIDMax =
CALCULATE(
Min( DimHospital[HospitalID] ) ,
FILTER( DimHospital, DimHospital[HospitalID] <> DimHospital[HospIDMin] )
)
 
VAR _M =
Min( DimHospital[HospitalID] )
RETURN
IF( _M <> HospIDMax, "Default", _M )

 

Expected Result 

1 Default

2 Italy

3 France

4 USA 

5 China

 

2 REPLIES 2
amitchandak
Super User
Super User

@carlol , As of now default selection can not be dynamic.  Even if we want min or max value in the column, I doubt that will help in this case.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks , taught this might be the case 

 

Worse case I can set to a hardcoded default and if the user falls outside this , message pop up to prompt the user to make a selection 

 

If anybody else has any work arounds to implement a dynamic seletion please post up 

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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