Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 max 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
Having issue with DAX
Something like this
Solved! Go to Solution.
Hi @carlol
Try this:
Max =
VAR HospIDMax =
CALCULATE(
MAX( DimHospital[HospitalID] ),
FILTER( DimHospital, DimHospital[Hospital] <> "National" )
)
VAR _M =
MAX( DimHospital[HospitalID] )
RETURN
IF( _M = HospIDMax, "Default", _M )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Thanks will give it a try and let you know how I get on
Hi @carlol
Try this:
Max =
VAR HospIDMax =
CALCULATE(
MAX( DimHospital[HospitalID] ),
FILTER( DimHospital, DimHospital[Hospital] <> "National" )
)
VAR _M =
MAX( DimHospital[HospitalID] )
RETURN
IF( _M = HospIDMax, "Default", _M )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 27 | |
| 17 | |
| 11 | |
| 10 |