Forum Discussion

JbPa33's avatar
JbPa33
Icon for Helper I rankHelper I
4 years ago
Solved

Create an aggregate column

Hello,   I am working on Power BI et i would like to create an aggregate column : On Power BI, I have a table with the first 3 columns and I would like to create the green column. I tried wi...
  • jdbuchanan71's avatar
    4 years ago

    JbPa33 

    You can use a formula like this

    Sum by vendor = 
    CALCULATE ( SUM ( 'YourTable'[Sum] ), ALLEXCEPT ( 'YourTable', 'YourTable'[Vendor] ) )

    You will need to change the table and field names to match your model.