Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

How to calculate avg

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-2222-Mar-2223-Mar-2224-Mar-2225-Mar-2226-Mar-2227-Mar-22Week 13Avg. Week 13

 

      2082072072052042032031437 

@PowerBI 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You need to preprocess the data in  ‘Transfor data’ as below:

1.use headers as first row

1.png

2.Transpose this new table and rename columns

2.png

3.png

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You need to preprocess the data in  ‘Transfor data’ as below:

1.use headers as first row

1.png

2.Transpose this new table and rename columns

2.png

3.png

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.