Forum Discussion
Anonymous
3 years agoNot applicable
Split a string of values into Columns
Hi All, I am using Embeded power BI, in the Username() i am getting list of values "A,B,C,D". When i am reading this it is considering as a string not as a list of values. Anyone come accross this s...
- Anonymous3 years ago
Hi Tamerj,
i have created a measure same as mentioned. I assume that it returns the table but somehow i am not able to see any thing. Do i need to create any table prior to this?
RLS_Key =VAR String = "P1,P2,P3" -- place your sting hereVAR Items =SUBSTITUTE ( String, ",", "|" )VAR Length =COALESCE ( PATHLENGTH ( Items ), 1 )VAR T1 =GENERATESERIES ( 1, Length, 1 )RETURNSELECTCOLUMNS (T1,"Project",PATHITEM(Items,[Value]))Could you please clarify.
tamerj1
Community Champion
3 years agoHere is the same solution
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Embedded-RLS/m-p/2930629#M96402