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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Stacked bar chart week number axis question

I have a stacked bar chart using the week number as an axis point.  This works just fine but I want to limit the view to a four week rolling view with the current week on the right and three weeks ago on the left.  How can I get this done?

 

Thanks for the information

1 ACCEPTED SOLUTION
HashamNiaz
Solution Sage
Solution Sage

Hi @Anonymous !

 

You can create a measure to calculate Last 4 weeks Sales / KPI.

 

You can then place this measure on your chart and it will show weekly Sales based on Last 4 weeks.

 

Regards,

Hasham

View solution in original post

1 REPLY 1
HashamNiaz
Solution Sage
Solution Sage

Hi @Anonymous !

 

You can create a measure to calculate Last 4 weeks Sales / KPI.

 

You can then place this measure on your chart and it will show weekly Sales based on Last 4 weeks.

 

Regards,

Hasham

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.