Forum Discussion
cpereyra
6 years agoHelper I
Delimiter with Direct Query
I need to delimit the following column each time "~" shows. It won't let me do in in Edit Query because I have a Direct Query Connection. Does anyone know a dax to grab the text between "~" shows? Ke...
- 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
VasTg
6 years agoMemorable Member
Try this...
Column =
VAR A = IFERROR(FIND("~",'Table (4)'[Column1]),0)
VAR B = IFERROR(FIND("~",'Table (4)'[Column1],A+1),0)-1
RETURN IFERROR(MID('Table (4)'[Column1],A+1,B-A),'Table (4)'[Column1])
If it helps, mark it as a solution
Kudos are nice too
cpereyra
6 years agoHelper I
It does work but how would you go about additional delimiters on the same column.
Ex.
PEC~Insurances - ~Homeowner
Would need back three columns
1- PEC
2 - Insurances
3 - Homeowner
Anonymous VasTg amitchandak