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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Figure 1. python implication of the problem
Hi, I want to make a visual on PBI based on the figure above. My dataset is like this:
Figure 2. dataset overview
So visual will show overall mean smape distribution among the data, but also a spesific 'series's mean smape value' that are selected via 'Series Slicer'.
To be more spesific, I want to choose one series from the slicer and want distribution to stay the same but highlight the point of the series' mean smape in the visual, just like in the first figure.
My boxplot's python script code is below:
# The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script:
# dataset = pandas.DataFrame(series, mean smape)
# dataset = dataset.drop_duplicates()
# Paste or type your script code here:
import seaborn as sns
import matplotlib.pyplot as plt
sns.boxplot(y=dataset['mean smape'])
plt.show()
I hope I manage to make the problem clear. Appreciate your help!
Best regards.
When you apply filters in your data model to the fields in your Python visual the visual will recalculate accordingly and re-plot.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!