Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have the following table:
ID Transaction Date
1 1/31/2018
2 1/31/2018
3 1/31/2018
4 2/28/2018
5 2/28/2018
6 12/31/2017
7 12/31/2017
8 12/31/2017
I want to calculate the average based on the grouping them by trasaction date.
Ex: Count of ID when Transaction date = 1/31/2018 + Count of ID when transaction date = 2018 and so on.
The 2017 is an example. Ideally I would like it as count of ID groupin git by transaction date in that year. In 2017 it would be Measure = (count(ID) when transaction date =1/31/2017 + count of ID when transaction date = 2/28/2017 + Count of ID when transaction date= 3/31/2017 + .......)/12. As in the average.
For 2018, it needs to be b9 8 and similarly in September it needs to be by 8 and so on.
Can this be done in any way? Thank You
Hi @Anonymous,
You could create a measure:
Average = COUNT('Table'[ID])/12
Add 'Transaction Date' hierarchy (remove all levels except for 'Year') and above measure into table visual.
Regards,
Yuliana Gu
I would need that as a seperate measure to show on my visuals. I should not be showing the transaction date as part of my visuals.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 64 | |
| 31 | |
| 26 | |
| 26 |