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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Vitor_sp_bo
Helper I
Helper I

average by day number

Guys, good afternoon! all right?

I need help finding the average by date... example to follow

I have a base with 1 year of data, basically I want to know the average sales on each day 1, 2, 3, 4 and so on, I need a number for each day.


thank you for now and any questions I am at your disposal

1 ACCEPTED SOLUTION

Hi @Vitor_sp_bo ,

 

Please try the following measure:

 

Ave = 
AVERAGEX (
    FILTER ( ALLSELECTED ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) ),
    CALCULATE ( SUM ( 'Table'[Value] ) )
)

vkkfmsft_0-1644477757235.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Sergione
Regular Visitor

Hi @Vitor_sp_bo, to achieve it you need to build a measure in the following way:
Measure Average = Average ( TableName[ColumnName] ).

Then you drag and drop this measure together with date columns on the canvas and will get a desired result.

If you really want to understand why it works and how, I strongly suggest you to read this artcile (link) SQLBI team are real professionals in explaining Power BI concepts.

Good luck with your Power BI journey!

Thanks for the comment, that way I will only have an average value, I need 1 value per day, for example, take every day 1 (first) and see the average only of these and not a consolidated value

Hi @Vitor_sp_bo ,

 

Please try the following measure:

 

Ave = 
AVERAGEX (
    FILTER ( ALLSELECTED ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) ),
    CALCULATE ( SUM ( 'Table'[Value] ) )
)

vkkfmsft_0-1644477757235.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.