Thank you, that works but I can still see all the categories under the parent as default.
How do I do if I only would like to see the “parent” och to see the sub-categories you need to click on the “parent” then the rest of the categories will be shown.