Forum Discussion

dheeraj_ami's avatar
dheeraj_ami
Helper I
10 years ago
Solved

How to create level measure

HI   How to create a measure with a level (Level Metrics in microstrategy) for eg: i need a report like SubCategory,SumOfRevenue,SumOfRevenue For Category where Category attribute should not be in...
  • Anonymous's avatar
    Anonymous
    10 years ago

    dheeraj_ami

     

    I tried using a sample data set in excel power pivot and it worked.

     

    Create a meaure called BYCAT using the expression

    BYCAT=

    SUMX(
    SUMMARIZE( SalesFactTable
    ,ProductCategory[ProductCategoryKey]
    ,"PYBC", Calculate(sum([Revenue],ALL(ProductCategory[ProductCategoryKey]))
    )
    ,[PYBC]
    )

     

    I am assuming you have the necessary relationship built between the various tables.

     

    Create a cross table using this and you should be able to see the result the way you want.

    The sample output in the excel power pivot model tried by me is

     

     

     

    Try it out and if it works please accept this as a solution and also give kudos.