Forum Discussion
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 report
- Anonymous10 years ago
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.
24 Replies
- dheeraj_amiHelper I
how can i 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 report
- AnonymousNot applicable
- dheeraj_amiHelper IGreg_Decklerplease help me out how to create a level measure
- AnonymousNot applicable
- dheeraj_amiHelper I
Anonymous
- dheeraj_amiHelper I
Anonymous The below picture shows the level measure (category_revenue) this measure is based on category column and beside category_revenue column there is revenue column this is based on sub-category column so, when you add (SUM) up all sub-category's in single category then category_revenue column is defined.
Could you please help me in this doing in power BI
Thanks,
Dheeraj
- AnonymousNot applicable
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.
- dheeraj_amiHelper I
Anonymous Hi wil u please explain the expression and please let me know what in mean by "PYBC" in the expression
Thanks
Dheeraj