This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
My Data is as follows, with data going back to the start of the year
| Week | Week Start Date | Name | Emails Sent |
| 38 | 14/09/20 | Person 1 | 150 |
| 38 | 14/09/20 | Person 2 | 256 |
| 38 | 14/09/20 | Person 3 | 189 |
| 37 | 07/09/20 | Person 1 | 354 |
| 37 | 07/09/20 | Person 2 | 156 |
| 37 | 07/09/20 | Person 3 | 345 |
And I'm looking to create another column of the average emails sent per week, so it would look like the below:
| Week | Week Start Date | Name | Emails Sent | Emails Sent (Weekly Average) |
| 38 | 14/09/20 | Person 1 | 150 | 198 |
| 38 | 14/09/20 | Person 2 | 256 | 198 |
| 38 | 14/09/20 | Person 3 | 189 | 198 |
| 37 | 07/09/20 | Person 1 | 354 | 285 |
| 37 | 07/09/20 | Person 2 | 156 | 285 |
| 37 | 07/09/20 | Person 3 | 345 | 285 |
So my question is, how do I create a column which can do this?
Solved! Go to Solution.
@morgancampbell , Please try a new column like
Averagex(filter(Table,[Week Start Date] =earlier([Week Start Date])),[Emails Sent])
@morgancampbell , Please try a new column like
Averagex(filter(Table,[Week Start Date] =earlier([Week Start Date])),[Emails Sent])
Ah it worked!!
That's brilliant, thank you
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 27 | |
| 21 | |
| 20 | |
| 20 | |
| 20 |