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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Odn_ndO
Helper I
Helper I

In Role Level Security, how do i make my dynamic header work as well.

I have set RLS for each region.
In my report i also have Dynamic header that will change accordingly when each reagion is selected, and if none is chose, the word GLOBAL will appear.
For this i use SELECTEDVALUE, thus with RLS, when in APAC , the header does not change and remain as GLOBAL as the slicer for region is not selected yet.
 
How can i make it that with RLS in place, i do not need to select the region and the correct header will reflect. but at the same time, the existing measure for the dynamic header still applies.
3 REPLIES 3
lbendlin
Super User
Super User

Consider using ISFILTERED and/or HASONEFILTER

Hi Ibendlin, 

 

Thank you for your response, my existing measures is already with ISFILTERED, kindly do see the measure as below and advise changes that has to be made.

 

ISSUE BREAKDOWN BY REGION =

SELECTEDVALUE

('Quarter'[Quarter],

" "

)  &

IF

(

ISFILTERED

('Region'[Region]),

""

,

" ALL"

) &

" ISSUE BREAKDOWN ANALYSIS BY REGION "

&

if

(

ISFILTERED

('Region'[Region]),

"FOR "

&

CONCATENATEX

(

values

('Region'[Region]),'Regionr'[Region],

", "

),

""

)

Formatting it gives

 

ISSUE BREAKDOWN BY REGION =
SELECTEDVALUE ( 'Quarter'[Quarter], " " )
    & IF ( ISFILTERED ( 'Region'[Region] ), "", " ALL" ) & " ISSUE BREAKDOWN ANALYSIS BY REGION "
    & IF (
        ISFILTERED ( 'Region'[Region] ),
        "FOR " & CONCATENATEX ( VALUES ( 'Region'[Region] ), [Region], ", " ),
        ""
    )

 

Be aware that you did not specify a sort order for CONCATENATEX, so the result will be random.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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