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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.