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

Dynamic Axis in Boxplot

Does anyone know if it is possible to dynamically change, as with scatterplots, the axis in the MAQ Software Boxplots? If not, any other alternative?

2 REPLIES 2
AmiraBedh
Super User
Super User

You add a table or a list with the names of the fields you'd like the user to select as axes.
Then add a slicer to the report and link it to this table or list which will let users choose which field they want to use for the axis.

You will need to create a measure that reads the slicer value and then fetches the relevant column data based on that selection.

DynamicAxisValue =
SWITCH(
SELECTEDVALUE('Axis Table'[Axis Name]),
"Option 1", SUM('Data Table'[Field 1]),
"Option 2", SUM('Data Table'[Field 2]),
...
SUM('Data Table'[Default Field])
)

You can add the `DynamicAxisValue` measure to the appropriate axis on the boxplot. When users select a different option in the slicer, the measure will adjust, and the chart's axis will change accordingly.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
Anonymous
Not applicable

Thanks for the answer! If I only need the y-axis of the boxplot to change dinamically, would I still use a switch statement?

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.