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
thisiskl
Frequent Visitor

show date every 4 weeks in x axis

Hi community, 

 

I wanted to show dates in the x axis, say every four weeks, in ther x axis as below. How to proceed? 

 

Screenshot 2022-12-03 at 13.43.42.png

 

 

 

Many thanks.

2 REPLIES 2
thisiskl
Frequent Visitor

Hi @FreemanZ  this is a great tip to work out "the every four weeks" part. The thing is my client wanted to show 20 months of data without a scolling bar. And the x axis can't be continuous, because they wanted to leave the missing data points as blanks. The width of my chart can only fit in 12 months of data. I'm trying to figour out how to display 20 months of data without a scrolling bar. I thought if I show dates every four weeks, I could manipulate the width. But the client didn't want to see the week No., they wanted to see the specific date. 

 

thisiskl_1-1670502438261.png

 

thisiskl_0-1670502377836.png

 

 

 

FreemanZ
Super User
Super User

hi @thisiskl 

you may need to create a new grouping column in your Date table with the code below and pull the new column to your x-axis of your chart. 

WeekGroup =
VAR _WeekNum = WEEKNUM([Date], 2)
RETURN
SWITCH(
    TRUE(),
     _WeekNum<=4, "1-4W",
     _WeekNum<=8, "5-8W",
     _WeekNum<=12,"9-12W",
    _WeekNum<=16,"13-16W",
    _WeekNum<=20,"17-20W",
    _WeekNum<=24,"21-24W",
    _WeekNum<=28,"25-28W",
    _WeekNum<=32,"29-32W",
    _WeekNum<=36,"33-36W",
    _WeekNum<=40,"37-40W",
    _WeekNum<=44,"41-44W",
    _WeekNum<=48,"45-48W",
    "49-53W"
)
 
i tried and it worked like this:
FreemanZ_0-1670127100270.png
FreemanZ_1-1670127132236.png

 

hope you feel comfortable with this solution, otherwise you may try the easy but loose solution, like this:

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

 

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