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 was wondering, how can I have a Page level filer by the logged person in username()
This is not RLS, since the person should be able to see data for all users, but for a specific page I want to show the person's only
data, how can it be done?
Solved! Go to Solution.
That's correct, you cannot use the USERNAME or USERPRINCIPALNAME functions as a column in a table. However, you can use these functions in a measure to filter the data at the visual level. Here's how you can do this:
Add the measure to the table or matrix visual that you want to filter.
Click on the visual and go to the "Format" tab in the top menu.
In the "Filters" section, click on the "Add" button.
In the "Add filter" window, select the measure that you created as the field to filter by.
In the "Filter type" dropdown, select "Advanced".
In the "Advanced Filter" window, select the operator and value for your filter. For example, you can use the "=LoggedInUser" measure to filter the data for the logged in user.
Click "OK" to apply the filter.
I hope this helps! Let me know if you have any questions.
What is the version of this Power BI, I can't find this path described.
That's correct, you cannot use the USERNAME or USERPRINCIPALNAME functions as a column in a table. However, you can use these functions in a measure to filter the data at the visual level. Here's how you can do this:
Add the measure to the table or matrix visual that you want to filter.
Click on the visual and go to the "Format" tab in the top menu.
In the "Filters" section, click on the "Add" button.
In the "Add filter" window, select the measure that you created as the field to filter by.
In the "Filter type" dropdown, select "Advanced".
In the "Advanced Filter" window, select the operator and value for your filter. For example, you can use the "=LoggedInUser" measure to filter the data for the logged in user.
Click "OK" to apply the filter.
I hope this helps! Let me know if you have any questions.
@Anonymous , Please check reply from @MatthRichardsUK first.
But as far as I am aware you can not use username and userprincipalname in a column. This means you have to create a measure and you can use measure only in the visual level filter, not page level.
In Power BI, you can create a page level filter by using a report-level filter or a page-level filter.
To create a report-level filter, follow these steps:
To create a page-level filter, follow these steps:
I hope this helps! Let me know if you have any questions.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |