Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I am using Embeded power BI and in that RLS we are using. In the username() i am getting a string and i need to filter the data. In the RLS i get the list of values in the form of a string. I am getting additonal characters which i don't want in order to filter the data. Could you please help which DAX function will work.
I am getting list of values as a string: "'ABC','TDEF','HIJ'"
and i should have like this "ABC","TDEF","HIJ"
Means i need to exclude the first and last character of the double quotes and replace single quotes with Double quotes. The list of values will increase. it should work dynamically
Solved! Go to Solution.
Hi @Anonymous
please try
=
SUBSTITUTE ( SUBSTITUTE ( USERNAME (), """", "" ), "'", """" )
Thank you very much. All my single quotes are coverted into double quotes
Hi @Anonymous
please try
=
SUBSTITUTE ( SUBSTITUTE ( USERNAME (), """", "" ), "'", """" )
Thank you very much. All my single quotes are coverted into double quotes
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |