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
gotters
Helper II
Helper II

Power BI CustomData not being passed to report

The ability to pass a customdata string field into a token request is now available for Power BI. Apparently it should be available in the dataset itself via Dax filter methods ie using a dax filter that looks like this

[State] = CUSTOMDATA()

I have followed all the available online instructions but the customdata that I am passing never seems to land in the report and I cannot figure out what I am doing wrong. I know the other parameters that I am passing such as username, datasets and roles are all working as expected but customdata just does not seem to work.

Is anyone able to advise what I might be missing? It never seems to come through. Any help would be appreciated. See screenshots below for what how I have implemented it. Thanks

 

Here is an example of the token request I am making 

 

gotters_5-1655155954664.png

 

 

Here is an example of the dax filter I created that is consuming the custom data 

 

gotters_4-1655155941241.png

 

 

I also tried adding the CustomData as a measure just to see it in the report (without applying any filtering) 

 

gotters_6-1655155991286.png

 

 

 

 

 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @gotters ,

 

Did you specify the master user a member of the role(s) you created. If no role(s) are specified, then all the roles the master user is a member of are used for RLS evaluation.

 

For more information on how to use CustomData() please refer to the following article.

Using row-level security with embedded content in Power BI embedded analytics - Power BI | Microsoft...

 

Best Regards

Community Support Team _ chenwu zhu

 

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

Thanks for your reply. Yes we did make sure that the relevant master user was assigned to the role - but still had no luck getting it to work. 

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.