Forum Discussion
Delimiter with Direct Query
- Anonymous6 years ago
Hi cpereyra,
Here I updated my sample PBIX file , please check if the newly added measures can get the expected results you want.In addition, if it is possible to handle with it in data source , then load the split columns into Power BI Desktop?
Best Regards
Rena
Hi cpereyra ,
You can create one measure as below, please find full details in my sample PBIX file.The character "~" be displayed multiple times in text column "Extra_Fiels.PCC_ALL", here only get the characters between the first "~" and the last "~".
FPCC = IFERROR (
MID (
MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ),
FIND ( "~", MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ) ) + 1,
FIND (
"@",
SUBSTITUTE (
MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ),
"~",
"@",
LEN ( MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ) )
- LEN ( SUBSTITUTE ( MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ), "~", "" ) )
),
1
)
- FIND ( "~", MAX ( 'PEC Work'[Extra_Fields.PCC_ALL] ) ) - 1
),
""
)
Best Regards
Rena