cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-473441%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E7%95%B6%E8%B3%87%E6%96%99%E4%BB%A5%E7%BE%A4%E7%B5%84%E7%9A%84%E5%BD%A2%E5%BC%8F%E7%B5%A6%E5%87%BA%E6%99%82%EF%BC%8C%E5%A6%82%E4%BD%95%E5%B0%8D%E5%88%97%E4%B8%AD%E7%9A%84%E8%B3%87%E6%96%99%E9%80%B2%E8%A1%8C%E5%96%AE%E7%8D%A8%E6%8E%92%E5%BA%8F%EF%BC%9F%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-473441%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%0A%20%20%20%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E6%9F%A5%E7%9C%8B%E7%9A%84%E6%95%B8%E6%93%9A%E6%98%AF%E9%9B%BB%E5%BD%B1%EF%BC%8C%E5%85%B6%E4%B8%AD%E4%B8%80%E5%88%97%E6%98%AF%E9%A1%9E%E5%9E%8B%E3%80%82%E7%84%B6%E8%80%8C%EF%BC%8CJMP%20%E5%B0%87%E7%89%B9%E5%AE%9A%E9%9B%BB%E5%BD%B1%E6%89%80%E5%B1%AC%E7%9A%84%E9%A1%9E%E5%9E%8B%E6%AD%B8%E9%A1%9E%E7%82%BA%E4%B8%80%E5%80%8B%E6%95%B8%E6%93%9A%E9%9B%86%E2%80%9C%E5%A5%87%E5%B9%BB%7C%E6%81%90%E6%80%96%7C%E6%84%9B%E6%83%85%7C%E9%A9%9A%E6%82%9A%E2%80%9D%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%B0%87%E5%85%B6%E6%8B%86%E5%88%86%E6%88%90%E2%80%9C%E5%A5%87%E5%B9%BB%E2%80%9D%E3%80%81%E2%80%9C%E6%81%90%E6%80%96%E2%80%9D%E3%80%81%E2%80%9C%E6%84%9B%E6%83%85%E2%80%9D%E3%80%81%E2%80%9C%E9%A9%9A%E6%82%9A%E2%80%9D%E7%AD%89%E5%96%AE%E7%8D%A8%E7%9A%84%E9%9B%BB%E5%BD%B1%E9%A1%9E%E5%9E%8B%E3%80%82%E6%88%91%E6%83%B3%E5%B0%87%E9%A1%9E%E5%9E%8B%E5%88%97%E5%88%86%E9%96%8B%EF%BC%8C%E4%BB%A5%E4%BE%BF%E5%8F%AF%E4%BB%A5%E5%88%86%E5%88%A5%E5%88%86%E6%9E%90%E5%90%84%E5%80%8B%E9%A1%9E%E5%9E%8B%E3%80%82%E6%88%91%E8%A9%B2%E5%A6%82%E4%BD%95%E6%B8%85%E7%90%86%E6%95%B8%E6%93%9A%EF%BC%8C%E4%BB%A5%E4%BE%BF%E7%95%B6%E6%88%91%E6%A0%B9%E6%93%9A%E9%A1%9E%E5%9E%8B%E5%B0%8D%E9%9B%BB%E5%BD%B1%E9%80%B2%E8%A1%8C%E6%8E%92%E5%BA%8F%E6%99%82%EF%BC%8C%E7%B3%BB%E7%B5%B1%E6%9C%83%E9%A1%AF%E7%A4%BA%E5%96%AE%E4%B8%80%E9%A1%9E%E5%9E%8B%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%88%86%E7%B5%84%E7%9A%84%E9%9B%86%E5%90%88%EF%BC%9F%3C%2FP%3E%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222ae7a1f5682288af0a54faee2b558b68.png%22%20style%3D%22width%3A%20647px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222ae7a1f5682288af0a54faee2b558b68.png%22%20style%3D%22width%3A%20647px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F41181i9119826A005CC133%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222ae7a1f5682288af0a54faee2b558b68.png%22%20alt%3D%222ae7a1f5682288af0a54faee2b558b68.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%20%20%3C%2FLINGO-BODY%3E%0A%20%20%3CLINGO-LABS%20id%3D%22lingo-labs-473441%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%0A%20%20%20%3CLINGO-LABEL%3E%E8%B3%87%E6%96%99%E6%B7%B7%E5%90%88%E8%88%87%E6%B8%85%E7%90%86%3C%2FLINGO-LABEL%3E%0A%20%20%3C%2FLINGO-LABS%3E%0A%20%0A%3CLINGO-SUB%20id%3D%22lingo-sub-473469%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E7%95%B6%E6%95%B8%E6%93%9A%E4%BD%9C%E7%82%BA%E4%B8%80%E5%80%8B%E7%B5%84%E7%B5%A6%E5%87%BA%E6%99%82%EF%BC%8C%E5%A6%82%E4%BD%95%E5%B0%8D%E5%88%97%E4%B8%AD%E7%9A%84%E6%95%B8%E6%93%9A%E9%80%B2%E8%A1%8C%E5%96%AE%E7%8D%A8%E6%8E%92%E5%BA%8F%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-473469%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%96%AE%E6%93%8A%E7%9B%B8%E9%97%9C%E5%88%97%E7%9A%84%E5%88%97%E6%A8%99%E9%A1%8C%EF%BC%88%E6%B5%81%E6%B4%BE%EF%BC%89%E3%80%82%E7%84%B6%E5%BE%8C%E8%BD%89%E5%88%B0%E5%88%97%E4%B8%8B%E6%8B%89%E8%8F%9C%E5%96%AE%E4%B8%A6%E9%81%B8%E6%93%87%3C%2FP%3E%0A%3CP%3ECols%3D%26gt%3BUtilities%3D%26gt%3BText%20to%20Columns%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E5%A1%AB%E5%AF%AB%E5%BD%88%E5%87%BA%E7%9A%84%E7%B0%A1%E5%96%AE%E5%B0%8D%E8%A9%B1%E6%A1%86%E4%BB%A5%E6%8C%87%E5%AE%9A%E6%82%A8%E7%9A%84%E2%80%9C%7C%E2%80%9D%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_1-1648353801488.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_1-1648353801488.png%22%20style%3D%22width%3A%20201px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_1-1648353801488.png%22%20style%3D%22width%3A%20201px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F41186i8ACA6CD83068E271%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_1-1648353801488.png%22%20alt%3D%22txnelson_1-1648353801488.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E4%B8%A6%E5%96%AE%E6%93%8A%E2%80%9C%E7%A2%BA%E5%AE%9A%E2%80%9D%EF%BC%8C%E5%A4%9A%E5%AD%97%E6%AE%B5%E5%88%97%E4%B8%AD%E7%9A%84%E4%B8%8D%E5%90%8C%E5%AD%97%E6%AE%B5%E5%B0%87%E8%A2%AB%E5%88%86%E9%9A%94%E7%82%BA%E6%96%B0%E5%88%97%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_2-1648356183265.png%22%20style%3D%22width%3A%20690px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_2-1648356183265.png%22%20style%3D%22width%3A%20690px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_2-1648356183265.png%22%20style%3D%22width%3A%20690px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F41187i5C465612237A7E93%2Fimage-dimensions%2F690x238%3Fv%3Dv2%22%20width%3D%22690%22%20height%3D%22238%22%20role%3D%22button%22%20title%3D%22txnelson_2-1648356183265.png%22%20alt%3D%22txnelson_2-1648356183265.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%B3%A8%E6%84%8F%EF%BC%9A%E9%80%99%E6%98%AF%E6%88%91%E5%89%9B%E5%89%9B%E6%8B%BC%E6%B9%8A%E7%9A%84%E4%B8%80%E5%80%8B%E6%95%B8%E6%93%9A%E8%A1%A8%E3%80%82%E6%B5%81%E6%B4%BE%E5%8F%AA%E6%98%AF%E9%9A%A8%E6%A9%9F%E5%80%BC%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E7%8F%BE%E5%9C%A8%E5%8E%BB%3C%2FP%3E%0A%3CP%3E%E8%A1%A8%3D%26gt%3B%E5%A0%86%E6%A3%A7%3C%2FP%3E%0A%3CP%3E%E4%B8%A6%E5%A0%86%E7%96%8A%E6%89%80%E6%9C%89%E6%96%B0%E7%9A%84%E6%B5%81%E6%B4%BE%E5%88%97%3C%2FP%3E%0A%3CP%3E%E9%80%99%E6%9C%83%E7%B5%A6%E4%BD%A0%E4%B8%80%E5%80%8B%E8%A1%A8%E6%A0%BC%EF%BC%8C%E5%AF%A6%E9%9A%9B%E4%B8%8A%E6%9C%83%E7%B5%A6%E4%BD%A0%E4%B8%80%E5%80%8B%E9%81%B8%E6%93%87%E6%B5%81%E6%B4%BE%E7%9A%84%E5%A5%BD%E6%96%B9%E6%B3%95%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_3-1648356385425.png%22%20style%3D%22width%3A%20779px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_3-1648356385425.png%22%20style%3D%22width%3A%20779px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_3-1648356385425.png%22%20style%3D%22width%3A%20779px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F41188iEBACF3F5AFAE0170%2Fimage-dimensions%2F779x409%3Fv%3Dv2%22%20width%3D%22779%22%20height%3D%22409%22%20role%3D%22button%22%20title%3D%22txnelson_3-1648356385425.png%22%20alt%3D%22txnelson_3-1648356385425.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E9%82%84%E5%8F%AF%E4%BB%A5%E5%86%8D%E8%B5%B0%E4%B8%80%E6%AD%A5%EF%BC%8C%E6%8B%86%E5%88%86%E6%95%B8%E6%93%9A%3C%2FP%3E%0A%3CP%3E%E8%A1%A8%3D%26gt%3B%E6%8B%86%E5%88%86%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E6%8C%89%E6%B5%81%E6%B4%BE%E5%88%97%E6%8B%86%E5%88%86%E7%9A%84%E4%BD%8D%E7%BD%AE%EF%BC%8C%E6%8C%89%E6%A8%99%E9%A1%8C%E5%88%97%E5%88%86%E7%B5%84%EF%BC%8C%E4%B8%A6%E5%B0%87%E6%B5%81%E6%B4%BE%E5%88%97%E6%8C%87%E5%AE%9A%E7%82%BA%E6%8B%86%E5%88%86%E5%88%97%3C%2FP%3E%0A%3CP%3E%E5%AE%83%E5%B0%87%E7%82%BA%E6%82%A8%E6%8F%90%E4%BE%9B%E5%A6%82%E4%B8%8B%E6%89%80%E7%A4%BA%E7%9A%84%E6%95%B8%E6%93%9A%E8%A1%A8%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_4-1648356597287.png%22%20style%3D%22width%3A%20868px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_4-1648356597287.png%22%20style%3D%22width%3A%20868px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_4-1648356597287.png%22%20style%3D%22width%3A%20868px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F41189iEDFACA35DDB2E22B%2Fimage-dimensions%2F868x420%3Fv%3Dv2%22%20width%3D%22868%22%20height%3D%22420%22%20role%3D%22button%22%20title%3D%22txnelson_4-1648356597287.png%22%20alt%3D%22txnelson_4-1648356597287.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%E9%80%99%E4%B8%8D%E7%AC%A6%E5%90%88%E6%82%A8%E7%9A%84%E8%A6%81%E6%B1%82%EF%BC%8C%E8%AB%8B%E6%8C%87%E5%AE%9A%E6%82%A8%E5%B8%8C%E6%9C%9B%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E5%A4%96%E8%A7%80%EF%BC%8C%E6%88%91%E7%9B%B8%E4%BF%A1%E7%A4%BE%E5%8D%80%E5%8F%AF%E4%BB%A5%E5%B0%B1%E5%A6%82%E4%BD%95%E8%BD%89%E6%8F%9B%E6%82%A8%E7%9A%84%E6%95%B8%E6%93%9A%E6%8F%90%E5%87%BA%E7%AD%94%E6%A1%88%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

How do I sort data individually in a column when the data is given as a group?

The data I am looking at is movies and one of the columns is genres. However JMP has the genres that a particular movie is categorized under grouped as one data set "Fantasy|Horror|Romance|Thriller" rather than as individual movie genres "Fantasy", "Horror", "Romance", "Thriller". I want to separate the genre column so that I can analyze the genres individually. How would I clean the data so that when I go to sort the movies based on genre it gives me the individual genre rather than the grouped set?

 

2ae7a1f5682288af0a54faee2b558b68.png

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How do I sort data individually in a column when the data is given as a group?

Click on the column header for the column in question(genres).  Then go to the column pull down menu and select

     Cols=>Utilities=>Text to Columns

 

Fill out the simple dialog box that pops up to specify your "|"

txnelson_1-1648353801488.png

and click OK, and the different fields from the multiple field column will be separated into new columns.

txnelson_2-1648356183265.png

Note: This is a data table I just threw together.  The genres are just random values

 

Now just go to 

     Tables=>Stack

and stack all of the new genres columns

This will give you a table that actually will give you a nice way to select Genres.

txnelson_3-1648356385425.png

You can also go another step, and split the data

     Tables=>Split

Where you Split By the Genres column, Group by the Title column, and also specify the Genres column as the Split column

It will give you a data table like the one below

txnelson_4-1648356597287.png

If this doesn't meet your requirements, please specify what you want the data table to look like, and I am sure the Community can come up with an answer on how to transform your data.

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: How do I sort data individually in a column when the data is given as a group?

Click on the column header for the column in question(genres).  Then go to the column pull down menu and select

     Cols=>Utilities=>Text to Columns

 

Fill out the simple dialog box that pops up to specify your "|"

txnelson_1-1648353801488.png

and click OK, and the different fields from the multiple field column will be separated into new columns.

txnelson_2-1648356183265.png

Note: This is a data table I just threw together.  The genres are just random values

 

Now just go to 

     Tables=>Stack

and stack all of the new genres columns

This will give you a table that actually will give you a nice way to select Genres.

txnelson_3-1648356385425.png

You can also go another step, and split the data

     Tables=>Split

Where you Split By the Genres column, Group by the Title column, and also specify the Genres column as the Split column

It will give you a data table like the one below

txnelson_4-1648356597287.png

If this doesn't meet your requirements, please specify what you want the data table to look like, and I am sure the Community can come up with an answer on how to transform your data.

 

Jim

Recommended Articles