Forum Discussion

eamclaughlin's avatar
eamclaughlin
Frequent Visitor
7 years ago
Solved

Calculated row/cell in Power BI

Hi,    I am new to Power BI and trying to resolve a problem which I have detailed below. The ideal solution would be to input a calculation at a cell level for financial years and totals although u...
  • v-danhe-msft's avatar
    7 years ago

    Hi eamclaughlin,

    Based on my test, you could refer to below steps:

    Sample data:

    Create four calculated columns in Table2:

    FY1 = IF('Table2'[Performence]="Task 1",CALCULATE(SUM(Table1[FY18])))
    
    FY2 = IF('Table2'[Performence]="Task 1",CALCULATE(SUM(Table1[FY19])))
    
    FY3 = IF('Table2'[Performence]="Task 1",CALCULATE(SUM(Table1[FY20])))
    
    FY4 = IF('Table2'[Performence]="Task 1",CALCULATE(SUM(Table1[FY21])))

    Result:

    You could also download the pbix file to have a view.

     

    Regards,

    Daniel He