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
Anonymous
Not applicable

SSAS live connection string property and DAX CustomData()

Hello, 

 

This might be an old question but maybe changes/updates have changed the answer.

 

Based on some articles below - it looks like dax function CustomData(https://docs.microsoft.com/en-us/dax/customdata-function-dax) will retrieve the CustomData property of the connection string in SSAS on premise. 

 

https://www.kasperonbi.com/using-customdata-and-ssas-with-power-bi-embedded/

https://blogs.msdn.microsoft.com/sqlrsteamblog/2016/06/03/passing-user-names-to-analysis-services-wi...

 

SSRS passes the {{USERID}} values into the connection string on connection - does PBIRS function the same way when an authenticated user opens a report with CustomData={{USERID}} in the connection string on the report server webpage?

 

If there any particular function or method found in the custom forms authentication example on github that would be crucial to the resolution of this value? Would SSRS or PowerBIRS be invoking GetUserInfo()?

2 REPLIES 2
ShaWo
Advocate I
Advocate I

Oh wow! This is highly interesting. We are investigating on how to deploy federated login to SSRS and with this we could transfer the signing account info all the way to SSAS to filter the data.

Thank you for confirming this works!

Anonymous
Not applicable

I'm confirming this is working.

 

Dax function CustomData() is returning {{USERID}} parameters from the report connection string set up in PBIRS. 

 

Some marked solutions in the forum are giving incorrect information. 

 

The finding above means you can implement a dax filter using CustomData() to acheive row level security to live connected SSAS on premise while authenticating users using an implementation like the custom security sample. 

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.