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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nrichards_au
Helper I
Helper I

Dax based RLS available in datamart - Error when trying Dynamic parameters

So I noticed that in the datamart preview that the dax editor is now available for PowerBI service. It autocompletes for both username and userprincipalname but I get the following error when I attempt to save the change.

 

  • Underlying Error{"code":"UnexpectedDatamartFailure","pbi.error":{"code":"UnexpectedDatamartFailure","parameters":{},"details":[{"code":"ModelingServiceError_Reason","detail":{"type":1,"value":"Parsing error exception at line 1 position 12: 'mismatched input 'USERNAME' expecting {TRUE, FALSE, BLANK, INT, FLOAT_NO_DOT, FLOAT_NO_FRAC, FLOAT_FRAC, STRING, DATETIME}'."}}]}}

Clearly it's a server side issue but just hoping someone from MS Support can escalate this. Fully aware that it's a preview so this is to be expected

2 REPLIES 2
Anonymous
Not applicable

Hi @nrichards_au ,

Given that the Datamart is still in preview, it may be part of the process to encounter such issues when extending and optimising the feature set. For more information about RLS in Datamart, you can see the link below:

Control access to datamarts (preview) - Power BI | Microsoft Learn

 

If it is not acceptable to use the Data Mart directly in the DAX editor, please consider implementing the RLS logic in Power BI Desktop first and then publishing the model to the Power BI service. 

By the way, can you confirm if the issue persists between browsers or after clearing the browser cache? 

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Ada,

 

Thanks for the response. 

It's purely a datamart issue so can't use PowerBI Desktop to manage the RLS of a datamart. The documentation says it should support it but it doesn't. If it should be posted as a bug instead happy to do so and mark this as solved.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.