Forum Discussion

Omega's avatar
Omega
Impactful Individual
9 years ago
Solved

Define aggregation at total

Hi, I am new to power BI and I need some help with aggregation. Assume I have the below table:   SKU| Export| Import| KPI1%| KPI2% 001 | 500    | 100     | 80%   | 80% 002 | 600    | 200     | 67...
  • EminUZUN's avatar
    9 years ago

     

     Hello,

     

    You may use following formula:

    KPI1% =
    DIVIDE (
        SUM ( Table1[Export] ) - SUM ( Table1[Import] ),
        SUM ( Table1[Export] )
    )

     

    KPI2% =
    DIVIDE (
        SUMX ( Table1, ABS ( Table1[Export] - Table1[Import] ) ),
        SUM ( Table1[Export] )
    )