Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Experts
I am trying to add the following to the manage roles in (RLS) section based on table Permsissions (filter applied to Email Address)
[Email Address] = USERPRINCOPLENAME()
|| [LEVEL 03] = USERPRINCOPLENAME()
|| [CC CODE] = USERPRINCOPLENAME()
Level 03 and Email Address are text column, CC Code is a numerical value...
the error message i am getting is Consider using VALUES or FORMAT funtion to convert one of the values .... question is how do you apply Values or format to the last line || [CC CODE] = USERPRINCOPLENAME()
Solved! Go to Solution.
@Anonymous the fundamental issue is the you cannot compare number field with text column, so cc code is number and you can't compare it with USERPRINCIPALNAME() which is text
As @amitchandak asked, it is not clear why this is required, share a sample data with the use case where CC Code will be used for RLS. Your sample data doesn't show all the details, like Level 02 column, where is this column?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous the fundamental issue is the you cannot compare number field with text column, so cc code is number and you can't compare it with USERPRINCIPALNAME() which is text
As @amitchandak asked, it is not clear why this is required, share a sample data with the use case where CC Code will be used for RLS. Your sample data doesn't show all the details, like Level 02 column, where is this column?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
My objective to is apply RLS to email based on Email Filter (permission table) - Which links to bidge table via department which link to FACT table via department but ONLY show CC Code that apply to John....in Finance .....we do not have cc code for all department....Hence i was trying to create some sort of hierarchy
See image
Hi Bcbobbs - The relationship is Both Between Permission table and the Lookup table based in ID and one to many between Lookup table and FACT table...
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.