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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

how to keep axis range when filtering graphs

Hi, 

I have a graph showing age (x) and number of people (y). I have another graph on the same page, where I can select a group of people that gets highlited on the first graph. 

However it is hard to see the differences - when in one goup there are just few ages, the x-axis ranges moves completely so I cant see how it compares to other groups (or all groups when noting is selected).

 

I have found a similar problem, but is not quite relevant here, because it was about having empty cells and not having different range:https://community.powerbi.com/t5/Desktop/how-to-prevent-filter-changes-from-effecting-x-axis/td-p/12...

 

Thank you 🙂

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create these two measures and set them to the minimum and maximum values of the X-axis respectively.

 

Min_X = MINX ( ALL ( 'Table' ), 'Table'[age] )
Max_X = MAXX ( ALL ( 'Table' ), 'Table'[age] )

vkkfmsft_0-1655270400865.png

vkkfmsft_1-1655270461374.pngvkkfmsft_2-1655270479019.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create these two measures and set them to the minimum and maximum values of the X-axis respectively.

 

Min_X = MINX ( ALL ( 'Table' ), 'Table'[age] )
Max_X = MAXX ( ALL ( 'Table' ), 'Table'[age] )

vkkfmsft_0-1655270400865.png

vkkfmsft_1-1655270461374.pngvkkfmsft_2-1655270479019.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi, thank you for your reply.

Your solution would work in some cases however it is more like a different approach. 

I would still like to know if it i possible to keep the axis fixed.

(slicer doesn´t seem to help with that).

V.

speedramps
Super User
Super User

Create just one graph

with  age (x) and number of people (y) and  legend = group.

then you can compare groups  A,B, C, D, E on a line or stack graph.

 

Also add slicer = group with multipole selecrtion turned on.

the the user can pick and choose which groups they want to compare.  eg just A, C and E

 

I have helped you, now please help me by giving kudos.

Click the thumbs up and accept as solution button. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each solver will get the kudos they deserve. Thank you ! 😎

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors