Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Can you guide me how to calculate avg as per below data. i want dax to calculate avg from 21 march to 27 march.
21-Mar-22 | 22-Mar-22 | 23-Mar-22 | 24-Mar-22 | 25-Mar-22 | 26-Mar-22 | 27-Mar-22 | Week 13 | Avg. Week 13 | |||||||
| 208 | 207 | 207 | 205 | 204 | 203 | 203 | 1437 |
Solved! Go to Solution.
Hi, @Anonymous
You need to preprocess the data in ‘Transfor data’ as below:
1.use headers as first row
2.Transpose this new table and rename columns
After processing the above data, you can calculate the average using the following formula:
Measure = CALCULATE(AVERAGE('Table'[Value]),FILTER('Table','Table'[Date]>=DATE(2022,3,21)&&'Table'[Date]<=DATE(2022,3,27)))
Best Regards,
Community Support Team _ Eason
Thanks
Hi, @Anonymous
You need to preprocess the data in ‘Transfor data’ as below:
1.use headers as first row
2.Transpose this new table and rename columns
After processing the above data, you can calculate the average using the following formula:
Measure = CALCULATE(AVERAGE('Table'[Value]),FILTER('Table','Table'[Date]>=DATE(2022,3,21)&&'Table'[Date]<=DATE(2022,3,27)))
Best Regards,
Community Support Team _ Eason
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |