StephenCooper
New Member
- Joined
- Dec 17, 2013
- Messages
- 1
Hi,
I am trying to calculate expenses as a percent of revenue. Model is simple:
Fact table: actualGLAccountFact
- attribute: [Account Total]
Dim table: dimGLAccount
- attribute: Account Type
Here is my DAX command. I keep getting Infinity.
Opex %Rev:=-CALCULATE(SUM(actualGLAccountFact[Account Total]), dimGLAccount[Account Type] = "Expenses")/CALCULATE(SUM(actualGLAccountFact[Account Total]), FILTER (ALL(dimGLAccount), dimGLAccount[Account Type]="Revenue"))
I am trying to calculate expenses as a percent of revenue. Model is simple:
Fact table: actualGLAccountFact
- attribute: [Account Total]
Dim table: dimGLAccount
- attribute: Account Type
Here is my DAX command. I keep getting Infinity.
Opex %Rev:=-CALCULATE(SUM(actualGLAccountFact[Account Total]), dimGLAccount[Account Type] = "Expenses")/CALCULATE(SUM(actualGLAccountFact[Account Total]), FILTER (ALL(dimGLAccount), dimGLAccount[Account Type]="Revenue"))