Dynamic Y-axis scale on line and stacked column chart based on filter selection
Hi everyone,
I'm building an NPS dashboard in Power BI with a line and stacked column chart:
- Columns: number of survey respondents per month
- Line: NPS score for that month (secondary Y-axis)
I have two slicers: cluster (segment) and survey name. The problem is that respondent volume varies drastically between clusters:
- Financial segment: 10k+ respondents per month
- Other segments: 200-300 respondents per month
If I set a fixed Y-axis range that works for low-volume surveys, the columns overflow and cover the NPS line when filtering
high-volume ones. If I set it for high-volume, the columns become nearly invisible flat bars when filtering low-volume surveys.
Is there a way to make the Y-axis range adjust automatically based on the slicer selection, so the chart always looks balanced regardless of which cluster or survey is filtered?
Any approach is welcome — DAX measures, visual settings, custom visuals, or a completely different chart design. I'd rather hear the best practice than force a solution I already have in mind.
Thanks!