Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am hoping this a simple one that I am over thinking...
I have a report that makes use of some dynamic RLS which uses an access table built in to the report that looks like this:
User_Email | UserName | AgentNum | Company | Region | Access Required |
So what I created a measure that filters the report title to the 'Company' name for a specific user when they log in using the below:
Company |
Apple |
Apple - Genius Bar |
In this scenrio they would want to see 'Apple' at the top. Anybody able to help?
Solved! Go to Solution.
Hi @Anonymous ,
We can try to meet your requirement use following formula:
Page_Title =
VAR t =
FILTER ( Access_Table, [User_Email] = USERPRINCIPALNAME () )
VAR CompanyNumber =
COUNTROWS ( t )
RETURN
IF (
CompanyNumber = 0,
"",
IF (
CompanyNumber = 1,
MAXX ( t, [Company] ),
MAXX ( TOPN ( 1, t, [Company], ASC ), [Company] )
)
)
Or
Page_Title =
VAR t =
FILTER ( Access_Table, [User_Email] = USERPRINCIPALNAME () )
VAR CompanyNumber =
COUNTROWS ( t )
RETURN
IF ( CompanyNumber = 0, "", MAXX ( TOPN ( 1, t, [Company], ASC ), [Company] ) )
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
We can try to meet your requirement use following formula:
Page_Title =
VAR t =
FILTER ( Access_Table, [User_Email] = USERPRINCIPALNAME () )
VAR CompanyNumber =
COUNTROWS ( t )
RETURN
IF (
CompanyNumber = 0,
"",
IF (
CompanyNumber = 1,
MAXX ( t, [Company] ),
MAXX ( TOPN ( 1, t, [Company], ASC ), [Company] )
)
)
Or
Page_Title =
VAR t =
FILTER ( Access_Table, [User_Email] = USERPRINCIPALNAME () )
VAR CompanyNumber =
COUNTROWS ( t )
RETURN
IF ( CompanyNumber = 0, "", MAXX ( TOPN ( 1, t, [Company], ASC ), [Company] ) )
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |