cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-783695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%EB%82%A0%EC%A7%9C%20%EB%B2%94%EC%9C%84%EC%97%90%20%EB%94%B0%EB%A5%B8%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EB%AC%B8%EC%9E%90%20%EC%97%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%20%EC%97%AC%EB%9F%AC%EB%B6%84%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EJMP%EB%A5%BC%20%EC%B2%98%EC%9D%8C%20%EC%A0%91%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EB%82%A0%EC%A7%9C%2F%EC%8B%9C%EA%B0%84%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%EC%84%9C%20%EB%82%A0%EC%A7%9C%EA%B0%80%202024%EB%85%84%201%EC%9B%94%201%EC%9D%BC%EB%B3%B4%EB%8B%A4%20%ED%81%B0%20%EA%B2%BD%EC%9A%B0%20%22After%22%20%EB%AC%B8%EC%9E%90%EB%A5%BC%20%EB%B0%98%ED%99%98%ED%95%98%EB%8A%94%20%EC%A1%B0%EA%B1%B4%EB%B6%80%20%EC%83%88%20%EC%97%B4%EC%9D%84%20%EC%84%A4%EC%A0%95%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%9D%B4%EA%B2%83%EC%9D%B4%20%EC%B6%A9%EC%A1%B1%EB%90%98%EC%A7%80%20%EC%95%8A%EC%9C%BC%EB%A9%B4%20%22Before%22%EB%A5%BC%20%EB%B0%98%ED%99%98%ED%95%A9%EB%8B%88%EB%8B%A4.%20%EC%88%98%EC%8B%9D%20%ED%8E%B8%EC%A7%91%EA%B8%B0%EB%A5%BC%20%EC%8B%9C%EB%8F%84%ED%96%88%EC%A7%80%EB%A7%8C%20%EC%97%AC%EC%A0%84%ED%9E%88%20%EB%AC%B8%EC%A0%9C%EA%B0%80%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4...%20%ED%96%89%EC%97%90%20%EA%B3%B5%EB%B0%B1%EB%A7%8C%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%B4%EC%9A%94!%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%3E%EA%B8%B0%EB%B3%B8%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EB%B6%84%EC%84%9D%20%EB%B0%8F%20%EB%AA%A8%EB%8D%B8%EB%A7%81%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%3ERe%3A%20%EB%82%A0%EC%A7%9C%20%EB%B2%94%EC%9C%84%EC%97%90%20%EB%94%B0%EB%A5%B8%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EB%AC%B8%EC%9E%90%20%EC%97%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDateTime%20%EC%97%B4%EC%9D%B4%20%EC%88%AB%EC%9E%90%ED%98%95%20JMP%20DateTime%20%EC%97%B4%EC%9D%B4%EB%9D%BC%EA%B3%A0%20%EA%B0%80%EC%A0%95%ED%95%98%EB%A9%B4%20%EC%95%84%EB%9E%98%20%EA%B3%B5%EC%8B%9D%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%A9%EB%8B%88%EB%8B%A4.%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%3ERe%3A%20%EB%82%A0%EC%A7%9C%20%EB%B2%94%EC%9C%84%EC%97%90%20%EB%94%B0%EB%A5%B8%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EB%AC%B8%EC%9E%90%20%EC%97%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGUI%EB%A5%BC%20%ED%86%B5%ED%95%B4%20%3CSTRONG%3E%EC%82%AC%EC%9A%A9%EC%9E%90%20%EC%A0%95%EC%9D%98%20Binning%EC%9D%84%3C%2FSTRONG%3E%20%EC%82%AC%EC%9A%A9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%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%20%EC%82%AC%EC%9A%A9%EC%9E%90%20%EC%A0%95%EC%9D%98%20%EB%9D%BC%EB%B2%A8%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%84%B8%EC%9A%94%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%3E%EC%84%A4%EC%A0%95%EC%9D%84%20%EC%A1%B0%EC%A0%95%ED%95%98%EB%A0%A4%EB%A9%B4%20%EB%8B%A4%EC%9D%8C%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%84%B8%EC%9A%94.%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%3ERe%3A%20%EB%82%A0%EC%A7%9C%20%EB%B2%94%EC%9C%84%EC%97%90%20%EB%94%B0%EB%A5%B8%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EB%AC%B8%EC%9E%90%20%EC%97%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EB%91%90%20%EB%B6%84%20%EB%AA%A8%EB%91%90%20%EC%A0%95%EB%A7%90%20%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4!%20JMP%EC%97%90%EB%8A%94%20%EC%A0%95%EB%A7%90%20%EB%A7%8E%EC%9D%80%20%ED%9E%98%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.....%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EA%B2%83%EC%9D%84%20%EB%B0%B0%EC%9A%B8%20%EC%88%98%20%EC%9E%88%EA%B8%B0%EB%A5%BC%20%EC%A0%95%EB%A7%90%20%EA%B8%B0%EB%8C%80%ED%95%98%EA%B3%A0%20%EC%9E%88%EC%96%B4%EC%9A%94!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EC%84%B8%EC%82%AC%EB%A5%B4%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%3ERe%3A%20%EB%82%A0%EC%A7%9C%20%EB%B2%94%EC%9C%84%EC%97%90%20%EB%94%B0%EB%A5%B8%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EB%AC%B8%EC%9E%90%20%EC%97%B4%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%EC%9D%B4%3C%2FA%3E%20%EA%B3%B5%EC%8B%9D%EC%9D%84%20%EC%A0%9C%EA%B3%B5%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%9D%B4%20%EA%B2%BD%EC%9A%B0%20In%20Format()%20%ED%95%A8%EC%88%98%EB%A5%BC%20%ED%98%B8%EC%B6%9C%ED%95%A0%20%ED%95%84%EC%9A%94%EA%B0%80%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%ED%8E%B8%EB%A6%AC%ED%95%9C%20%EB%A6%AC%ED%84%B0%EB%9F%B4%20%EB%82%A0%EC%A7%9C%20%EA%B0%92%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%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