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
ConstMoss
Helper I
Helper I

SSAS & Power BI

In power bi desktop or service, is it possible to to pass username() as a parameter to an SSAS MD model using MDX code using live connection?

1 ACCEPTED SOLUTION
v-jianhe-msft
Resolver II
Resolver II

Hi,

 

You could try to create a role with a DAX Table Filter that uses the USERNAME function.  Then, you'll associate any users that need to be filtered with this role. 

 

You could refer to this toturial: Tutorial: Dynamic row level security with Analysis services tabular model

Reference: http://community.powerbi.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-th...

 

Best Regards,

Henry 

 

View solution in original post

1 REPLY 1
v-jianhe-msft
Resolver II
Resolver II

Hi,

 

You could try to create a role with a DAX Table Filter that uses the USERNAME function.  Then, you'll associate any users that need to be filtered with this role. 

 

You could refer to this toturial: Tutorial: Dynamic row level security with Analysis services tabular model

Reference: http://community.powerbi.com/t5/Report-Server/Passing-user-parameter-from-dashboard-to-SQL-server-th...

 

Best Regards,

Henry 

 

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.