cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohannB Regular Visitor
Regular Visitor

Mid Function

Hi, Can someone please help. Why is this happening?Mid Error.JPG

 

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Rfranca Member
Member

Re: Mid Function

Hi, @jthomson @JohannB @Johannesvd

 

@Johannesvd help is correct, just check which language you are using.

can you try this:
tekst = MID ('dataset', 2, 3)
or non UK / US:
tekst = MID ('dataset' [timerange]; 2; 3)

 

But what I noticed you are creating a calculated column, and for these cases I recommend using EDITOR QUERY that has many more functions to solve what you are trying to work with the field "R 3 1 min - 1:59 min" and extract information.

 

Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.

Best Regards,
Rfranca

3 REPLIES 3
Super User
Super User

Re: Mid Function

Well, you've got two closing brackets as opposed to one opening bracket, what happens when you delete one of the close brackets?

Johannesvd Regular Visitor
Regular Visitor

Re: Mid Function

Hi,

 

can you try this:

tekst =
MID ( 'dataset'[timerange], 2, 3 )

 

or non UK/US:

 

tekst =
MID ( 'dataset'[timerange]; 2; 3 )

Highlighted
Rfranca Member
Member

Re: Mid Function

Hi, @jthomson @JohannB @Johannesvd

 

@Johannesvd help is correct, just check which language you are using.

can you try this:
tekst = MID ('dataset', 2, 3)
or non UK / US:
tekst = MID ('dataset' [timerange]; 2; 3)

 

But what I noticed you are creating a calculated column, and for these cases I recommend using EDITOR QUERY that has many more functions to solve what you are trying to work with the field "R 3 1 min - 1:59 min" and extract information.

 

Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.

Best Regards,
Rfranca