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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Add monthly average to a daily visual

Hi

 

I need to add data labels with monthly average to this serie. The visual represents daily values but my client wants only the monthly ones on it. Do you have any idea?

Captura2.PNG

Regards

 

5 REPLIES 5
Anonymous
Not applicable

You may need a measure for this, like :

 

# Orders last 30 days =
CALCULATE (
    COUNT ( 'Orders'[OrderKey] ) / 30;
    USERELATIONSHIP ( 'Date'[Date]; 'Orders'[Date] );
    DATESINPERIOD ( 'Date'[Date]; LASTDATE ( 'Orders'[Date] ); -30; DAY )

Anonymous
Not applicable

Sorry @Anonymous, but... what happens with 28, 29 and 31 days months?

Thanks

Anonymous
Not applicable

It was an example how to calculate average over x days. For months you can use something like:

AvgLast1Month = CALCULATE(AVERAGE(Orders[amount]),DATESINPERIOD(Orders[Date],LASTDATE(Orders[Date]),-1,MONTH))/1

AvgLast3Months = CALCULATE(AVERAGE(Orders[amount]),DATESINPERIOD(Orders[Date],LASTDATE(Orders[Date]),-3,MONTH))/3

etc.

 

Hope this will help you.

Kind regards

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may use date hierarchy and take advantage of drill down.

https://docs.microsoft.com/en-us/power-bi/guided-learning/visualizations#step-18

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Sorry @v-chuncz-msft, but I think thast this solution doesn't fit. It will show monthly serie with monthly average values. I need dairy serie with monthly average values.

Thanks anyway.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors