Multiple values in the same time rendered in the same series not a new one

So if I have this table
and my two variables are

and my query is

I get the following results once I choose more than one category or sub category

which is several values in the same time in the same graph, not as a new series based on the category, how to solve that?

And even if I use a separate new query, the problem remains but with new series.

OK, I figured it out if anyone later struggled with it, I used the category as a metric which is already used as a variable, and repeat function for the subcategory.