Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, after bulit the row level security unbale to see the data getting below mentioned error. even while testing in Power Bi desktop row level security is working fine.
An error was encountered during the evaluation of the row level security expression defined on table 'Test Data'. Error message: Function 'CONTAINSROW' does not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.
Hello @anshkapoor143 ,
the issue is clear, you're comparing a text with an integer, so go see where is the fields you're comparing in the Dax, and check the type of each and make them match.
Proud to be a Super User! | |
you need to assign these users to the row level in the service.
check this video from minute 2:53 to see how
https://www.youtube.com/watch?v=3jQiWHWZrNM&t=173s
Proud to be a Super User! | |
I already did that and test as well
I got same error, ... In Power BI desktop select many roles... you'll reproduce the error... even if each role, when tested individually, are ok. So your user have most likely many roles...
I looked at the table in the message, .. everything seems fine, no error, no calculated columns with error / CONTAINS function...
... so I looked at the Measures that migh be using this table... none seemed wrong, and none were using a contains function...
... was a bit discouraged... I deleted the rules for 2 roles on this table... just to see if any impact...
... still the error...
... removed it on all roles ... so no more RLS on this table ... -> Error &?& there....
... and then,.... I though of looking at the relations between this table in the message... and other table... and there was one, with a link comparing a text vs an int value... these were all ids... so all numbers, and I guess somehow in all the other contexts, PowerBI was doing the conversion automatically... mystery solved !
then they should view the report, if there's an error please show us the error.
Proud to be a Super User! | |