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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

DAX Help: RLS using IN CUSTOMDATA() and JSON-list

Hi! Need your help with DAX troubleshooting. Right now, I am clueless.

 

So, in Analysis Services I have used the Additonal Connection Parameters to add CUSTOMDATA(), where I want to pass a JSON list of values.

 

This does not work, and I get the following error:

A table expression for the argument was expected, but a string or numeric expression was used

 

 

When I try to troubleshoot this and work around it; i use the following with no issues at all - this works fine.

EVALUATE
FILTER
       ('v_pact_d_reseller_customer',
              'v_pact_d_reseller_customer'[Id] IN {20087,20088,20089}
       )

 

But when I try this, it does not work. 

EVALUATE
FILTER
       ('v_pact_d_reseller_customer',
              'v_pact_d_reseller_customer'[Id] IN CUSTOMDATA()
       )

 

From my perspective, they should return the same values. What am I doing wrong? 

 

Thanks!

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

As stated in this article, the CustomData feature only works for models that lie in Azure Analysis Services, and it only works in Connect live mode. Unlike users and roles, the Custom data feature can't be set inside a .pbix file.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft, and thanks for your answer.  I am using Azure AS and Live Connection - sorry for not mentioning that. As you can see from the screenshot, I am trying to set it in SQL Server Management Studio.

Anonymous
Not applicable

Any solution in sight ? I'm strugeling with this as well

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.