I'm trying to write a calculated member that will roll up along a dimension based on the selected values provided on the axes.
Product -> subcategory -> category lexus -> sedan -> car lexus-coupe -> coupe -> car bmw -> sedan -> car bmw-coupe -> couple -> car ford -> pickup -> truck chev -> pickup -> truck ford-suv -> suv -> truck lincoln-nav -> suv -> truck
[Calculated measure] = [measures].[a]+[measures].[b]
suppose the user wants to see [Calculated measure] at the car level for just lexus-coupe and bmw. How do you create a calculated measure that will roll up at the car level based on what has been selected in the dimension?
Thank you in advance!
SELECT [Measures].[MyMeasure] on columns, filter(descendants(product.sedan, product.category, self_and_before), <some filter criteria that removes some leaves>) on rows from mycube) .... where [measures].[MyMeasure] is defined as the tuple of (product.CurrentMember, OtherDimension.ParticularMember, measures.SomeOtherMeasure
. Yes, i know it's silly, but the customer wants a measure field for SomeOtherMeasure/ParticularMember tuple that will pivot on other dimensions. – feemurk