Kirk P.
New member
- Joined
- Nov 4, 2016
- Messages
- 10
- Reaction score
- 0
- Points
- 0
- Location
- Minnesota USA
- Excel Version(s)
- 365
I've got a text field that comes with a certain number of leading spaces.
These leading spaces indicate the level within the hierarchy, so 0 spaces is level 1, 5 spaces is level 2, 10 spaces is level 3, etc.
In Excel, this formula does a great job of reporting the number of leading spaces
=FIND(LEFT(TRIM(" LV Traditional"))," LV Traditional")-1
Is there an equivalent formula in Powerquery? I tried what I thought was the obvious Text.Start(" LV Traditional",Text.Trim(" LV Traditional"))), but it returns an error.
These leading spaces indicate the level within the hierarchy, so 0 spaces is level 1, 5 spaces is level 2, 10 spaces is level 3, etc.
In Excel, this formula does a great job of reporting the number of leading spaces
=FIND(LEFT(TRIM(" LV Traditional"))," LV Traditional")-1
Is there an equivalent formula in Powerquery? I tried what I thought was the obvious Text.Start(" LV Traditional",Text.Trim(" LV Traditional"))), but it returns an error.