Let's say I have 5 sub-categories under a parent category. I have data with averages and median values for some of those (let's say 3 of the) sub-categories and for rest of the sub-categories, the average and median values are NULL or 0.

Now, I wish to display average and medians for the Parent category. So, I remove the 'Sub-Category' from the rows under data analysis panel. What Dundas BI does is it calculates Average on the basis of the data from the 5 sub-categories (2 of them have 0 or NULL).

I want that the average and the medians for the Parent Category should be calculated only on the basis of the values of the 3 sub-categories. How do I achieve this?

And how can I calculate Median in Dundas BI?