Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Calculate rows for financial data / ratio calculation

Hello, I have following finance data for last 3 years and I would like add some rows to the data based on calculation. Is it possible to do this using power BI? Bellow is the sample data which ...
  • v-huizhn-msft's avatar
    9 years ago

    Hi Anonymous,

    I try to reproduce your scenario and get expected result as the following steps.

    1. Create new table.

    New Table1 = SUMMARIZE(Table1,Table1[Company],Table1[Category],Table1[Year],"1",CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Fields]="Net Claims Incurred")),"2",CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Fields]="Net Premium Earned")))


    Create calculated column to get ratio and add a fields column.

    Fields = "Net Loss Ratio"
    
    Value = 'New Table1'[Net Claims Incurred]/'New Table1'[Net Premium Earned]

     You will get the following table.



    2. Please right click the new table->Copy Tbale, then click Enter Data->Paste, delete the third and forth column, you will get the following table(Table3).

     

    3. Click Raw data table(Table1)->Edit Query, click the Append Queries. Select the Table3, you will get the expected result.



    The desired result.

     

     

     

    If you have other issues, don't hesitate to let me know.

    Best Regards,
    Angelia