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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Chart X Axis

I created a dax for sameperiod last year calculation. I put calculation in one chart and sameperiodlat year in Prev Chart. But i want to change X-Axis Values to show last year as well. Like 2019 instead of 2020. Is there any other way like using visual level filter where i change bottom chart to last year. For example when someone select Year-month 2020-08 on slicer the bottom chart give 2019-08. 

 

szafar_0-1603395332184.png

 

1 REPLY 1
lbendlin
Super User
Super User

In your Calendar table add a calculated column "Same day last year"  and then use that as the x axis for the bottom chart.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.