PowerBI.tips

Center the X-Axis on a Line Chart

July 9, 2018 By Seth Bauer
Center the X-Axis on a Line Chart

Sometimes when your working on a line chart you want the x-axis to stay centered on a chart. This tutorial will walk you through how to create an X-Axis that will always center it’s self on the graph.

Video Support Material:

The measures discussed within this tutorial are:

Variance All = SUM(Sales[Variance])

The column name Variance is found in the data table called sales.  This is just a numerical column.

After summing up all the variances we can calculate the min and max lines.

Const Max Line = [Variance All] * 1.2

Const Min Line = -1 * [Const Max Line]

Finally to calculate the variance to date you can use this filtered measure, which will only produce historical values.

Variance To Date = CALCULATE([Variance All], FILTER(‘Sales’,‘Sales’[Date] <= EOMONTH(TODAY(),0)))

Thanks for watching our short tutorial.  If you like this video please be sure to follow me (Seth Bauer) on Twitter, LinkedIn and be sure to subscribe to the PowerBI.Tips YouTube channel.

Previous

Power BI and Sudoku – Yes Please

More Posts

Jun 10, 2026

You Are Wasting Your Time! – Ep.531

Stop wasting time in Fabric by identifying inefficient workflows and adopting better practices. Mike and Tommy discuss OneLake storage reporting, Fabric Jumpstart accelerators, and practical ways to speed up your Fabric development.

May 22, 2026

Agentic Skill & Report Design – Ep. 530

Episode 530 explores how agentic coding is reshaping report development, from faster prototyping to new expectations for model and visual design. Mike and Tommy connect the May 2026 Power BI updates to a practical question: which skills still matter most when AI builds more of the stack.

May 20, 2026

AI Driving Your CoE - Ep.529

AI can strengthen a Center of Excellence, but only when it is applied to clear business goals, known pain points, and a defined maturity baseline. Mike and Tommy explain where AI can genuinely reduce friction, where it creates noise, and how teams can prove it is making the COE better rather than just bigger.