Good. Sounds like you found a solution. Here is another way. Select the x and y columns to be plotted and use the Plots command and its Mask sub-command as shown in the following figure in which the # column is used to select the rows of interest:
Just wanted to point out the “Plot” command would require the flat format and then mask as needed. And the “Plots” command, as shown nicely above, can work with a wide format.
For anyone that wants to learn about the difference in formats see: How to flatten data.