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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Get a page or visual filter to be applied to a variable value

Hello, I know that I do not know You can perform a per-role filter (RLS) in Power BI at the page level of a report.

I need an alternative method, ut powerilizar a direct filter on a page in question but that the value to filter was variable, I do not know if it is possible with DAX.

The fact is that I have a table of users and their departments, and I have achieved a measure (combining lookupvalue and userprincipalname) that gets me the department of the current user. This would be the value for that page filter, but I don't know how to mount it to apply.

I also tried a calculated column in that table, but it fails, the userprincipalname function is not allowed.

Let's see if anyone can think of any way, thanks in advance and greetings.

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin , Measure can only be filtered at a visual level.

 

You can create Dynamic segmentation, but all visuals need to use measures following the independent table used in Dynamic segmentation

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors