Forum Discussion
Shree_185
Helper I
4 years agoSplit text from first delimiter in Direct query
I am using a direct query and want to spilt data from the first delimiter. Can someone help me here with Dax?
| Input | Output |
| 313 days 14 hours 26 minutes | 313 |
| 109 days 8 hours 36 minutes | 109 |
| 42 days 11 hours 45 minutes | 42 |
| 32 days 11 hours 45 minutes | 32 |
| 31 days 7 hours 51 minutes | 31 |
| 20 days 17 hours 60 minutes | 20 |
4 Replies
- FarhanAhmed
Community Champion
Function 'FIND' is not allowed as part of calculated column DAX expressions on DirectQuery models.
- tamerj1
Community Champion
It's good to know. Thank you Farhan
- FarhanAhmed
Community Champion
Is it possible for you to change the Source Query ?
Change it to something like this.
select LEFT(Col,CharIndex(' ',Col)-1 ) SeparatedCol,* from dbo.TestView