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.

MSOLAP.7 Provider - Measure with Username() shows cryptic value

Currently it's not possible to display a measure which has USERNAME() in der DAX Formula.. when you use "analyse in excel"

Seems to be a bug with MSOLAP.7 Provider?

Also described here:

https://community.powerbi.com/t5/Service/Measure-with-Username-shows-cryptic-value-when-used-with-qu...

Status: Accepted
Comments
v-qiuyu-msft
Community Support

Hi @Anonymous,

 

I can reproduce the issue on my side. And I already reported it internally: CRI 28615545. Will update here once I get any feedback.

 

Best Regards,
Qiuyun Yu

Vicky_Song
Impactful Individual
Status changed to: Accepted
 
v-qiuyu-msft
Community Support

Hi @Anonymous,

 

I got the information below:

 

UserName function is related to RLS (Role Level Security)

If you'll:

1. Enable RLS for this model in PowerBI desktop - go to "Modeling", choose Manage Roles and just create any role (can be an empty role).

2. Save pbix.

3. Upload this pbix to PowerBI service.

4. Perform Analyze in XL again

5. Open the odc file in Excel.

You should see the actual user name instead of a GUID.

 

Please try the method above to see if it can work.

 

Best Regards,
Qiuyun Yu

v-haibl-msft
Employee

@Anonymous

 

Does above suggested solution work?

 

Best Regards,

Herbert

Anonymous
Not applicable

uhh, yes now it works. As suggested it works only when at least one (empty) RLS Role is definied in the model..THANKS, good to know!