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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Vinit0910
Frequent Visitor

Creating a graph that shows variation of data weekly over a month

Hello Everyone,

 

I'm working on one project. The client has requested to view the weekly average data represented in a graph for the chosen month. So, here is an example. In the image below, there is a date slicer that has a date range from Jan 01, 2025, to Jan 31, 2025, and below is the graph that has values on the Y-axis and dates on the X-axis. So I want to see weekly data, like 1st week (Jan 05), 2nd week (Jan 05), 1st week (Jan 05), 1st week (Jan 5), and an Average line passes throught it showing average of Each week data connects to the 2nd week of average data. connecting to 3rd week of average data and so on, and that create curve line

Vinit0910_0-1748366669410.png

Please let me know if anyone has a query regarding the above question.

Thanks,

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @Vinit0910,

 

Based on the requirement, please follow below steps to get the weekly average as a smooth line over daily data:

 

Create a week start column in your Date table:

Week Start Date = STARTOFWEEK('Date'[Date], 1)

 

Create the weekly average measure like below:

Weekly Average Sales =

CALCULATE(

    AVERAGE(FactSales[Sales]),

    ALLEXCEPT('Date', 'Date'[Week Start])

)

 

In the visual, use 'Date'[Date] on the X-axis, FactSales[Sales] in column, Weekly Average Sales in the line.

This calculates the average sales for each week, keeping the week context.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

5 REPLIES 5
v-achippa
Community Support
Community Support

Hi @Vinit0910,

 

Based on the requirement, please follow below steps to get the weekly average as a smooth line over daily data:

 

Create a week start column in your Date table:

Week Start Date = STARTOFWEEK('Date'[Date], 1)

 

Create the weekly average measure like below:

Weekly Average Sales =

CALCULATE(

    AVERAGE(FactSales[Sales]),

    ALLEXCEPT('Date', 'Date'[Week Start])

)

 

In the visual, use 'Date'[Date] on the X-axis, FactSales[Sales] in column, Weekly Average Sales in the line.

This calculates the average sales for each week, keeping the week context.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Yes, I used a line chart with the start of the week on the X-axis, and I put their minimum, maximum, and average on the Y-axis. that solves my problem

techies
Super User
Super User

Hi @Vinit0910 as i understand, please check this

 

Weekly Average =
CALCULATE (
    AVERAGE ( FactSales[Sales] ),
    ALLEXCEPT ( 'date', 'date'[week start date] )
)
― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

Thanks for the answer. I applied the DAX solution, but the column chart and line chart, or any chart, do not allow me to put this measure in the axis.

SreeniBattula
Helper II
Helper II

Create Week column  and concatinate with  month and choose this  column in X-axis 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors