Forum Discussion
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
Here is an example of the dax filter I created that is consuming the custom data
I also tried adding the CustomData as a measure just to see it in the report (without applying any filtering)
2 Replies
- v-chenwuz-msftCommunity 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.
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.
- gottersResolver I
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.