cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-783695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENouvelle%20colonne%20de%20caract%C3%A8res%20bas%C3%A9e%20sur%20la%20plage%20de%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESalut%20tout%20le%20monde%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ENouveau%20sur%20JMP%20ici.%20J'ai%20une%20table%20Date%2FHeure%20o%C3%B9%20je%20voudrais%20%C3%A9tablir%20une%20nouvelle%20colonne%20conditionnelle%20qui%2C%20si%20la%20date%20est%20%26gt%3B%201%2F1%2F2024%2C%20renvoie%20un%20caract%C3%A8re%20%C2%AB%20Apr%C3%A8s%20%C2%BB.%20Si%20ce%20n'est%20pas%20le%20cas%2C%20renvoie%20%C2%AB%20Avant%20%C2%BB.%20J'ai%20essay%C3%A9%20l'%C3%A9diteur%20de%20formules%20mais%20j'ai%20toujours%20des%20probl%C3%A8mes...%20juste%20des%20blancs%20dans%20les%20lignes.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMerci!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-783695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAnalyse%20et%20mod%C3%A9lisation%20de%20donn%C3%A9es%20de%20base%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ER%C3%A9%3A%20Nouvelle%20colonne%20de%20caract%C3%A8res%20bas%C3%A9e%20sur%20la%20plage%20de%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEn%20supposant%20que%20votre%20colonne%20DateTime%20soit%20une%20colonne%20DateTime%20JMP%20num%C3%A9rique%2C%20la%20formule%20ci-dessous%20fonctionnera%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EIf(%20%3AEvent%20Date%20%26lt%3B%20Informat(%20%2201%2F01%2F2024%22%2C%20%22m%2Fd%2Fy%22%20)%2C%0A%09%22Before%22%2C%0A%09%22After%22%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ER%C3%A9%3A%20Nouvelle%20colonne%20de%20caract%C3%A8res%20bas%C3%A9e%20sur%20la%20plage%20de%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EVia%20l'interface%20graphique%2C%20vous%20pouvez%20utiliser%20%3CSTRONG%3Ele%20binning%20personnalis%C3%A9%3C%2FSTRONG%3E%26nbsp%3B%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1724504187864.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1724504187864.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1724504187864.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1724504187864.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67487i0B6BCC89BBC2A85E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1724504187864.png%22%20alt%3D%22hogi_0-1724504187864.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%20et%20utilisez%20des%20%C3%A9tiquettes%20personnalis%C3%A9es%26nbsp%3B%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_2-1724504339366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1724504339366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1724504339366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1724504339366.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67489i6786E5AC032E1A38%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_2-1724504339366.png%22%20alt%3D%22hogi_2-1724504339366.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_1-1724504271574.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_1-1724504271574.png%22%20style%3D%22width%3A%20342px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_1-1724504271574.png%22%20style%3D%22width%3A%20342px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_1-1724504271574.png%22%20style%3D%22width%3A%20342px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67488iC0D79F98E07EF82E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_1-1724504271574.png%22%20alt%3D%22hogi_1-1724504271574.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPour%20ajuster%20les%20param%C3%A8tres%2C%20utilisez%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_3-1724504440360.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1724504440360.png%22%20style%3D%22width%3A%20385px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1724504440360.png%22%20style%3D%22width%3A%20385px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1724504440360.png%22%20style%3D%22width%3A%20385px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67490iA7B77C49A4474F33%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_3-1724504440360.png%22%20alt%3D%22hogi_3-1724504440360.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ER%C3%A9%3A%20Nouvelle%20colonne%20de%20caract%C3%A8res%20bas%C3%A9e%20sur%20la%20plage%20de%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerci%20beaucoup%20%C3%A0%20vous%20deux%20!%20JMP%20offre%20tellement%20de%20puissance...%20J'ai%20vraiment%20h%C3%A2te%20d'en%20apprendre%20davantage%20!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EC%C3%A9sar%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ER%C3%A9%3A%20Nouvelle%20colonne%20de%20caract%C3%A8res%20bas%C3%A9e%20sur%20la%20plage%20de%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%40txnelson%3C%2FA%3E%20a%20fourni%20la%20formule.%20Dans%20ce%20cas%2C%20vous%20n'avez%20pas%20besoin%20d'appeler%20la%20fonction%20In%20Format().%20Vous%20pouvez%20utiliser%20une%20valeur%20de%20date%20litt%C3%A9rale%20pratique.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EIf(%20%3AEvent%20Date%20%26lt%3B%2001Jan2024%2C%0A%09%22Before%22%2C%0A%09%22After%22%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
LEARNING
Level I

New Character Column Based on Date Range

Hi Everyone,

 

New to JMP here.  I have a Date/Time table where I would like to establish a conditional new column that if the date is > 1/1/2024, then return a character of "After."  If this is not met, return "Before."  I have tried the formula editor but still having issues.....just blanks in the rows.

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: New Character Column Based on Date Range

Assuming your DateTime column is a numeric JMP DateTime column the below formula will work

If( :Event Date < Informat( "01/01/2024", "m/d/y" ),
	"Before",
	"After"
)
Jim

View solution in original post

hogi
Level XII

Re: New Character Column Based on Date Range

Via the GUI, you can use Custom Binning:

hogi_0-1724504187864.png
and use custom labels:

hogi_2-1724504339366.png

 

hogi_1-1724504271574.png



To adjust the settings, use

hogi_3-1724504440360.png

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: New Character Column Based on Date Range

Assuming your DateTime column is a numeric JMP DateTime column the below formula will work

If( :Event Date < Informat( "01/01/2024", "m/d/y" ),
	"Before",
	"After"
)
Jim
hogi
Level XII

Re: New Character Column Based on Date Range

Via the GUI, you can use Custom Binning:

hogi_0-1724504187864.png
and use custom labels:

hogi_2-1724504339366.png

 

hogi_1-1724504271574.png



To adjust the settings, use

hogi_3-1724504440360.png

Re: New Character Column Based on Date Range

@txnelson provided the formula. In this case, you do not need to call the In Format() function. You can use a convenient literal date value.

If( :Event Date < 01Jan2024,
	"Before",
	"After"
);
LEARNING
Level I

Re: New Character Column Based on Date Range

Thank you very much both!  There is so much power in JMP.....I am really looking forward to learning more!

 

Cesar