<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use slicer partly on a python script based boxplot? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-slicer-partly-on-a-python-script-based-boxplot/m-p/2893954#M6177</link>
    <description>&lt;P&gt;When you apply&amp;nbsp; filters in your data model to the fields in your Python visual the visual will recalculate accordingly and re-plot.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 01:44:45 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-11-09T01:44:45Z</dc:date>
    <item>
      <title>How to use slicer partly on a python script based boxplot?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-slicer-partly-on-a-python-script-based-boxplot/m-p/2882937#M6154</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsz_29_0-1667480385131.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/816356iED332464ECE74868/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsz_29_0-1667480385131.png" alt="bsz_29_0-1667480385131.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Figure 1. python implication of the problem&lt;/P&gt;&lt;P&gt;Hi, I want to make a visual on PBI based on the figure above. My dataset is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsz_29_1-1667480535267.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/816360i11F49B0E17CE99CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsz_29_1-1667480535267.png" alt="bsz_29_1-1667480535267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Figure 2. dataset overview&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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'.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My boxplot's python script code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# 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()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I manage to make the problem clear. Appreciate your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 13:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-slicer-partly-on-a-python-script-based-boxplot/m-p/2882937#M6154</guid>
      <dc:creator>bsz_29</dc:creator>
      <dc:date>2022-11-03T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use slicer partly on a python script based boxplot?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-slicer-partly-on-a-python-script-based-boxplot/m-p/2893954#M6177</link>
      <description>&lt;P&gt;When you apply&amp;nbsp; filters in your data model to the fields in your Python visual the visual will recalculate accordingly and re-plot.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 01:44:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-slicer-partly-on-a-python-script-based-boxplot/m-p/2893954#M6177</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-11-09T01:44:45Z</dc:date>
    </item>
  </channel>
</rss>

