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
rajendraongole1
Super User
Super User

X- axis date Display on weekly aggregation

Hi 

 

Want to display the data in the form of below attached chart format on X axis.

 

for each month we have four or 5 weeks approximately

 

eg., in 5th month we have 5 weeks and day should comes as adding with 7 (+7 days) aggregatin it .

 

 

rajendraongole1_0-1623739274293.png

 

 

for 6th month too in 6th month we have 4 weeks  so for each week the data should aggregate and comes as 6/7,6/14/6/21 and last week 6/28  adding next 7 days data.

 

any suggestion to implement this logic. kindly suggest.

 

Regards,

Rajendra





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @rajendraongole1 ,

I created some data:

2020.3.1 – 2020.4.30

vyangliumsft_0-1623916908839.png

Here are the steps you can follow:

1. Create calculated column.

date_co =
var _weekday=WEEKDAY([date],2)-1
return
[date]-_weekday

2. Place [date_co] above Axis, and in Format, select X axis – Type – Categorical

vyangliumsft_1-1623916908842.png

3. Result:

vyangliumsft_2-1623916908846.png

 

 

Best Regards,

Liu Yang

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
Anonymous
Not applicable

Hi  @rajendraongole1 ,

I created some data:

2020.3.1 – 2020.4.30

vyangliumsft_0-1623916908839.png

Here are the steps you can follow:

1. Create calculated column.

date_co =
var _weekday=WEEKDAY([date],2)-1
return
[date]-_weekday

2. Place [date_co] above Axis, and in Format, select X axis – Type – Categorical

vyangliumsft_1-1623916908842.png

3. Result:

vyangliumsft_2-1623916908846.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajendraongole1
Super User
Super User

Thanks @amitchandak .

 

example: For current month June 2021 axis fields should expected as below:

 

 

 

6/7 , adding next 7 days as to the date as 6/14,6/21,6/28, for 7th month 7/5 date has to pick. 

 

rajendraongole1_0-1623743947720.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





amitchandak
Super User
Super User

@rajendraongole1 , do you need 4,4,5 calendar or something else

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

for 4 4 5 -https://www.youtube.com/watch?v=JqVnqMLGWDY

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors