Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Revenue divided by Expense

This link contails a zip file with the example I am trying to produce.   I would like to determine the position of a company by calculating the required categories divided by the total revenue.   ...
  • sturlaws's avatar
    6 years ago

    Hi, Anonymous 

     

    I am a bit confused about this sentence:
    The challenge I have is that the GL Entries that contain the Revenue Lines which need to be calcuated as a total of all the lines and not just exclude them so that we get a total of the operating Expesnses divided by the total revenue.

     

    Could you check if this gives you what you are after:

    Operating expenses / revenue =
    DIVIDE (
        CALCULATE (
            SUM ( GeneralLedger[Amount] ),
            FILTER ( 'COASort', COASort[Classification] = "Operating Expenses" )
        ),
        CALCULATE (
            SUM ( GeneralLedger[Amount] ),
            FILTER ( ALL ( 'COASort' ), COASort[Classification] = "Revenue" )
        )
    )
    

     

    Cheers,
    Sturla

    If this post helps, then please consider Accepting it as the solution. Kudos are nice too.