Forum Discussion

ssutton's avatar
ssutton
Frequent Visitor
6 years ago
Solved

CREATE CALULCATIONS ON VALUES FROM SELECT ROWS

I need to create a measure that DIVIDES the SUM of select rows in column A by the SUM of select rows in column B.   Amount of Overhead Cost + Amount of PTO = TOTAL COST The TOTAL COST will be used...
  • amitchandak's avatar
    6 years ago

    Try new measures like


    cost = calculate(sum(table[Amount]),table[Column A] in{"Overhead Cost","PTO"})
    revenue = calculate(sum(table[Amount]),table[Column A] ="Revenue")

    Ratio =divide([cost],[revenue])