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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DineshDwilco
Frequent Visitor

How Display Current Rolename in PowerBI Report

I need to Display RoleName in my Dashboard Report. Rolename i passed from MVC C# application. How i can do in Report?

1 REPLY 1
d_gosbell
Super User
Super User

How are you passing the role name?

 

If you are using a connection string with Roles= then there are no DAX functions to get information about security roles, but you could add the same information in a customdata= then use the CUSTOMDATA() function in a DAX measure to display that information from the connection string.

 

If you are doing something else then you'll need to describe your setup in more detail so we can suggest some option.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.