one option in this extension is answer for your first question
Could you say more about the second question?
I assume that you can use calculated dimension with If statement or match function either at script level or in UI.
I have a variable named "Month of birth" and I have made a dimension "MoB" which consists of two classes MB1 for (first six months of the year) and MB2 for (last six months of the year) using wildmatch. Now, I have to make another two classes of another variable in the class MB1. So how can do that in UI?