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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
santiagomur
Resolver II
Resolver II

slicer not refresh ---- RLS

Hi , 

 

i have some problems with the slicer is not refreshing when the rsl changes. 

 

i have a table with the user name and a RLS  formula User = UserName()

 

Example

table 1                                           

User
A
B
C

 

Table 2

UserNameAge
AJhon10
APeter20
AErik30
BFrank40
CNichols50

 

step 1 

1.png

 

 

step 2 

2.png

show as RLS user "A" the filter row is working, but i don't want to see a sum on the age card.

 

step 3 

3.png

I select "Erik" and then select to show as RLS user "A", and is perfect only show the names for user "A" the age card is not sum. 

 

step 4 

with Erik still selected change the RLS to user "B"  now the slicer show me Erik and frank, but Erik is not a name from user "B" what i want its the slicer refresh and only show me Frank.

i know the problem is that i publish with Erick selected but if i publish without, all the visual show sums, and i don't know how to publish without selection and the visuals show the data for the first row available.

( i try do the same with a chicletslicer with forced selection apply and works, when i change the RSL the slicer refresh their values) but my boss what to use the default visuals. 
4.png 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@santiagomur 

 

You may try adding the following measure.

Measure =
CALCULATE (
    SUM ( 'Table 2'[Age] ),
    TOPN ( 1, 'Table 2', 'Table 2'[Name], ASC )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@santiagomur 

 

You may try adding the following measure.

Measure =
CALCULATE (
    SUM ( 'Table 2'[Age] ),
    TOPN ( 1, 'Table 2', 'Table 2'[Name], ASC )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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