Forum Discussion

JohannB's avatar
JohannB
Helper I
8 years ago
Solved

Mid Function

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

 

 

Thank you

  • Rfranca's avatar
    Rfranca
    8 years ago

    Hi, jthomson JohannB Anonymous

     

    A Anonymous 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

  • jthomson's avatar
    jthomson
    Solution Sage

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

    • Rfranca's avatar
      Rfranca
      Resolver IV

      Hi, jthomson JohannB Anonymous

       

      A Anonymous 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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    can you try this:

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

     

    or non UK/US:

     

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