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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rajendraongole1
Post Prodigy
Post Prodigy

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

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

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
v-yangliu-msft
Community Support
Community Support

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
Post Prodigy
Post Prodigy

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

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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