Forum Discussion
SMYAguirre
3 years agoFrequent Visitor
Divide every row in a Matrix by a static calculated row
I am not entirely sure how to ask this question, but I will give it my best shot. I am fairly new to Power BI, but worked in other data modeling/reporting systems. We have found that income sta...
- 3 years ago
Hi SMYAguirre ,
Please try:
Measure = VAR _a = SUM ( TransactionsAgg[GLTotalAmount_Rev] ) VAR _b = CALCULATE ( SUM ( TransactionsAgg[GLTotalAmount_Rev] ), FILTER ( ALL ( '..Report Structure' ), [GL Category] = "Revenue" ), REMOVEFILTERS ( TransactionsAgg[ChartOfAccounts.GL Sub Category], TransactionsAgg[ChartOfAccounts.GL_Code_Desc] ) ) RETURN DIVIDE ( _a, _b )Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jianboli-msft
Community Support
3 years agoHi SMYAguirre ,
Please try:
Measure =
VAR _a =
SUM ( TransactionsAgg[GLTotalAmount_Rev] )
VAR _b =
CALCULATE (
SUM ( TransactionsAgg[GLTotalAmount_Rev] ),
FILTER ( ALL ( '..Report Structure' ), [GL Category] = "Revenue" ),
REMOVEFILTERS (
TransactionsAgg[ChartOfAccounts.GL Sub Category],
TransactionsAgg[ChartOfAccounts.GL_Code_Desc]
)
)
RETURN
DIVIDE ( _a, _b )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- SMYAguirre3 years agoFrequent Visitor
Thank you so much!! This worked and looking at the measure I understand why it worked. Thank you again!!!