Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi all,
I have two table :
The 1st with my societe_Id , the cost and the cost date
Id | Cost | Date |
187 | 125000 | 01/01/2019 |
187 | 255000 | 01/02/2020 |
186 | 255000 | 01/01/2021 |
187 | 155000 | 21/01/2021 |
the 2nd with a périod
Id | start date | end date |
187 | 01/01/20 | 31/12/20 |
186 | 01/07/20 | 31/06/20 |
I want to calculate the sum of each cost between the date of the 2nd table.
I don't find how to, could someone help me ?
Solved! Go to Solution.
@clmigeon , A new column table 2
new column in Table 2 = sumx(filter(Table1, Table1[ID] = Table2[ID] && Table1[Date] >=Table2[Start Date] && Table1[Date] <= Table2[End DATE]),Table1[Cost])
@clmigeon , A new column table 2
new column in Table 2 = sumx(filter(Table1, Table1[ID] = Table2[ID] && Table1[Date] >=Table2[Start Date] && Table1[Date] <= Table2[End DATE]),Table1[Cost])
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
120 | |
101 | |
71 | |
61 |