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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Users online (1,625)