ssas - MDX calculated member for average sales for top 10 persons -
supposing have electronics store 10 types of articles , 50 sales persons. can average number of sold articles 10 persons more sales each type of article?
i started creating named sets top 10 persons each article:
create dynamic set currentcube.[top 10 persons - laptops] topcount([dim person].[person name].members, 10, ([measures].[sales], [dim article].[article name].&[laptop])); create dynamic set currentcube.[top 10 persons - tvs] topcount([dim person].[person name].members, 10, ([measures].[sales], [dim article].[article name].&[tv]));
i other eight.
then trying create calculated member each article type. each calculated member sum total sales particular article top 10 persons included in corresponding named set, , divide 10.
how can this? or, recommend different approach?
i able find solution this. not necessary create named set. ended doing:
avg(topcount([dim person].[person name].children, 10, ([measures].[sales], [dim article].[article name].&[laptop])), ([measures].[sales], [dim article].[article name].&[laptop]))
Comments
Post a Comment