ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

TrimRight with wild card?

mgirdwood
Météoroïde

Hi everyone

 

I am trying to use trimright to remove a specific number characters;

 

TrimRight([Ten-Minute Timeline],":*0:00")  where the fifth character from the right needs to be a wild card to catch the minutes.  When i run it it strips the last  4 characters but leaves behind the number of minutes.  Is there a way to set this  ?

 

Input

2023-03-01 09:40:00
2023-03-01 08:10:00
2023-03-01 08:20:00
2023-03-01 07:50:00

 

2023-03-01 09
2023-03-01 08
2023-03-01 08
2023-03-01 07

 

Thanks

Mark

3 RÉPONSES 3
ShankerV
Castor

Hi @mgirdwood 

 

One way of doing this.

 

ShankerV_0-1678709547989.png

 

binu_acs
Polaris

@mgirdwood Basically the data is in DateTime format, if you want to only date part just update the dataType to Date

 

binuacs_0-1678709889937.png

 

Christina_H
Magnétar

You could keep it in DateTime format by using DateTimeTrim([Input],"hour")

Christina_H_0-1678710015208.png

 

Étiquettes
Auteurs des meilleures solutions