Forum Discussion

paolomint's avatar
paolomint
Helper III
6 years ago
Solved

Standard Financial report

Hello everyone,

I'm working on a financial report in Power Bi.

Unfortunately my boss also ask for a traditional overview of the data.

This my table:

 


 

 

 

 

I need to add, EBITDA and EBIT: 

EBITDA = REVENUES - DIRECT COST - INDIRECT COST

EBIT = EBITDA - CAPEX

 

 

 

 

 

 

I know it sound excel, but what we can do when someone ask for a basic view like this?

I know how to calcultate DAX measures, but I don't know how to arrange data and measures in a standard table like the second one.

Thanks for you help.

Paolo 

  • Hi, paolomint 

     

    Based on your description, I add new data in the table.

    Table:

    Test:

     

    Year(a calculated table):

     

    Year = DISTINCT('Table'[Year])

     

     

    Here are the measures.

     

    CurrentYear = 
    var _info = SELECTEDVALUE(Test[Info])
    var _year = SELECTEDVALUE('Year'[Year])
    var _revenues = 
    CALCULATE(
            SUM('Table'[Revenues]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _directcost = 
    CALCULATE(
            SUM('Table'[Direct cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _indirectcost = 
    CALCULATE(
            SUM('Table'[Indirect cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _capex = 
    CALCULATE(
        SUM('Table'[Capex]),
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Year] = _year
        )
    )
    return
    SWITCH(
        TRUE(),
        _info = "Revenues",
        _revenues,
        _info = "Direct cost",
        _directcost,
        _info = "Indirect cost",
        _indirectcost,
        _info = "Ebitda",
        _revenues-_directcost-_indirectcost,
        _info = "Capex",
        _capex,
        _info = "Ebit",
        _revenues-_directcost-_indirectcost-_capex,
        BLANK()
    )
    
    LastYear = 
    var _info = SELECTEDVALUE(Test[Info])
    var _year = SELECTEDVALUE('Year'[Year])-1
    var _revenues = 
    CALCULATE(
            SUM('Table'[Revenues]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _directcost = 
    CALCULATE(
            SUM('Table'[Direct cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _indirectcost = 
    CALCULATE(
            SUM('Table'[Indirect cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
    )
    var _capex = 
    CALCULATE(
        SUM('Table'[Capex]),
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Year] = _year
        )
    )
    return
    SWITCH(
        TRUE(),
        _info = "Revenues",
        _revenues,
        _info = "Direct cost",
        _directcost,
        _info = "Indirect cost",
        _indirectcost,
        _info = "Ebitda",
        _revenues-_directcost-_indirectcost,
        _info = "Capex",
        _capex,
        _info = "Ebit",
        _revenues-_directcost-_indirectcost-_capex,
        BLANK()
    )
    
    Diff = [CurrentYear]-[LastYear]
    
    Result rate = 
    DIVIDE(
        [CurrentYear]-[LastYear],
        [LastYear]
    )

     

     

    You may use a matrix visual to display the result.

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi paolomint,

     

    I was working for years in Finance and this is one of the problems: managers are not able to change the old fashioned way to show the capabilities of Power BI. 

     

    To refer to your tables there, I think you the simplest way is to calculate Earnings before interest and taxes, depreciation and amortization in excel and EBIT with a simple formula or if you would like you can calculate in Power BI.

    To do that in a simple way:

    go to column which you want to calculate - right click - new quick measure and there you can choose the calculation type and the columns easily. 

    Than in Power BI you can just choose table to show the same format as in excel for your boss.

     

    To simplify this I would go with calculation in Excel and present in Power BI.

     

    Let me know if this helped. If helped please give a kudos and accept as solution,

     

    Thanking you 

    Alin Oprita

  • v-alq-msft's avatar
    v-alq-msft
    Community Support

    Hi, paolomint 

     

    Based on your description, I created data to reproduce your scenario.

    Table:

     

    Test:

     

    You may create four measures as below.

     

    2019 = 
    var _info = SELECTEDVALUE(Test[Info])
    var _revenues = 
    CALCULATE(
            SUM('Table'[Revenues]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2019
            )
    )
    var _directcost = 
    CALCULATE(
            SUM('Table'[Direct cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2019
            )
    )
    var _indirectcost = 
    CALCULATE(
            SUM('Table'[Indirect cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2019
            )
    )
    var _capex = 
    CALCULATE(
        SUM('Table'[Capex]),
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Year] = 2019
        )
    )
    return
    SWITCH(
        TRUE(),
        _info = "Revenues",
        _revenues,
        _info = "Direct cost",
        _directcost,
        _info = "Indirect cost",
        _indirectcost,
        _info = "Ebitda",
        _revenues-_directcost-_indirectcost,
        _info = "Capex",
        _capex,
        _info = "Ebit",
        _revenues-_directcost-_indirectcost-_capex,
        BLANK()
    )
    2020 = 
    var _info = SELECTEDVALUE(Test[Info])
    var _revenues = 
    CALCULATE(
            SUM('Table'[Revenues]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2020
            )
    )
    var _directcost = 
    CALCULATE(
            SUM('Table'[Direct cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2020
            )
    )
    var _indirectcost = 
    CALCULATE(
            SUM('Table'[Indirect cost]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = 2020
            )
    )
    var _capex = 
    CALCULATE(
        SUM('Table'[Capex]),
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Year] = 2020
        )
    )
    return
    SWITCH(
        TRUE(),
        _info = "Revenues",
        _revenues,
        _info = "Direct cost",
        _directcost,
        _info = "Indirect cost",
        _indirectcost,
        _info = "Ebitda",
        _revenues-_directcost-_indirectcost,
        _info = "Capex",
        _capex,
        _info = "Ebit",
        _revenues-_directcost-_indirectcost-_capex,
        BLANK()
    )
    Diff = [2020]-[2019]
    Result rate = 
    DIVIDE(
        [2020]-[2019],
        [2019]
    )

     

     

    Result:

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • paolomint's avatar
      paolomint
      Helper III

      Hi Allan,

      (v-alq-msft)

       

      Thank you very much for you reply, it's a fantastic solution.

      before to accept it, whereas you reply is extremely clear, I try to make a step forward, describing a daily situation to understand if the model could easly become a general solution that work with time intelligence. 

       

      You completely reply to my question, today my boss is satisfied 😉

      but in my easy model there are only 2 years, 2019/2020, following your procedure, in 2021 I have to add new measures,

      if the boss ask for quarter or months instead of year, I have to create several new measures.

       

      Attached you can find a "picture" of a standard data model to obtain a financial report.

      Is it possible to make a Power Bi model that can work with time intelligence? 

      For example the result could be a table with time (Year, quarter or month) that come from Datetime table.

      This way we can also use YTD/MTD formula

       

      Thank you very much for your very professional reply

      Paolo

       

       

      • v-alq-msft's avatar
        v-alq-msft
        Community Support

        Hi, paolomint 

         

        Based on your description, I add new data in the table.

        Table:

        Test:

         

        Year(a calculated table):

         

        Year = DISTINCT('Table'[Year])

         

         

        Here are the measures.

         

        CurrentYear = 
        var _info = SELECTEDVALUE(Test[Info])
        var _year = SELECTEDVALUE('Year'[Year])
        var _revenues = 
        CALCULATE(
                SUM('Table'[Revenues]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _directcost = 
        CALCULATE(
                SUM('Table'[Direct cost]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _indirectcost = 
        CALCULATE(
                SUM('Table'[Indirect cost]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _capex = 
        CALCULATE(
            SUM('Table'[Capex]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
        )
        return
        SWITCH(
            TRUE(),
            _info = "Revenues",
            _revenues,
            _info = "Direct cost",
            _directcost,
            _info = "Indirect cost",
            _indirectcost,
            _info = "Ebitda",
            _revenues-_directcost-_indirectcost,
            _info = "Capex",
            _capex,
            _info = "Ebit",
            _revenues-_directcost-_indirectcost-_capex,
            BLANK()
        )
        
        LastYear = 
        var _info = SELECTEDVALUE(Test[Info])
        var _year = SELECTEDVALUE('Year'[Year])-1
        var _revenues = 
        CALCULATE(
                SUM('Table'[Revenues]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _directcost = 
        CALCULATE(
                SUM('Table'[Direct cost]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _indirectcost = 
        CALCULATE(
                SUM('Table'[Indirect cost]),
                FILTER(
                    ALLSELECTED('Table'),
                    'Table'[Year] = _year
                )
        )
        var _capex = 
        CALCULATE(
            SUM('Table'[Capex]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[Year] = _year
            )
        )
        return
        SWITCH(
            TRUE(),
            _info = "Revenues",
            _revenues,
            _info = "Direct cost",
            _directcost,
            _info = "Indirect cost",
            _indirectcost,
            _info = "Ebitda",
            _revenues-_directcost-_indirectcost,
            _info = "Capex",
            _capex,
            _info = "Ebit",
            _revenues-_directcost-_indirectcost-_capex,
            BLANK()
        )
        
        Diff = [CurrentYear]-[LastYear]
        
        Result rate = 
        DIVIDE(
            [CurrentYear]-[LastYear],
            [LastYear]
        )

         

         

        You may use a matrix visual to display the result.

         

        Best Regards

        Allan

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.