Hello,
I've got a table with the following columns:
FirJrPer: which shows what company, year and month the data is about (text).
Car: the licenceplate of the specific car
Departement: text
Nrcars: indicates how much that car was used by that departement (0-1).
Totalcost: total cost of the cars for that specific period and company.
My problem: I want a calculated column, which gives me, for each row (=car), the sum of Nrcars for the rows in the table where FirJrPer is the same.
I've tried it with:
=sumx(filter('Cars',Cars[FirJrper]=Cars[FirJrper]),Cars[Nrcars]),
hoping that the filter-expression would give the selection I want, but it gives me the whole table. If I replace it with a specific example, e.g. =sumx(filter('Cars',Cars[FirJrper]="LNU20111",Cars[Nrcars]), then I get the correct result. So, I want the same thing, but with "LNU20111" being what is in the FirJrper-field of the particular row.
Hope someone can help.
Steven
Bookmarks