<?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 How to use dynamically filtered database in a python script in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-dynamically-filtered-database-in-a-python-script/m-p/1822537#M3675</link>
    <description>&lt;P&gt;I'm doing an analysis that takes a subset available from my Power BI data source and generates a table using python (which performs complex calculations).&lt;/P&gt;&lt;P&gt;But my question is about how to bring filtered data into the Python script.&lt;/P&gt;&lt;P&gt;I'm using the query transformation, which has a Python script option to generate my calculation.&lt;/P&gt;&lt;P&gt;The problem is that when I use the filter panel (inside the panel), the Python script is never updated and the data is still wrong.&lt;/P&gt;&lt;P&gt;I tried to use Visual Python, but I don't want to see the Python graphs, I need to use the python data to then visualize it in the Power BI graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked for several solutions, but I can't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here is a code I need to run:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# The data must be filtered before applying my python script

dataset['SMA'] = dataset.VALUE.rolling(2, win_type='gaussian').sum(std=3)

# After that, I need to show using Power BI charts&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 14:24:05 GMT</pubDate>
    <dc:creator>Guilherme8482</dc:creator>
    <dc:date>2021-05-04T14:24:05Z</dc:date>
    <item>
      <title>How to use dynamically filtered database in a python script</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-dynamically-filtered-database-in-a-python-script/m-p/1822537#M3675</link>
      <description>&lt;P&gt;I'm doing an analysis that takes a subset available from my Power BI data source and generates a table using python (which performs complex calculations).&lt;/P&gt;&lt;P&gt;But my question is about how to bring filtered data into the Python script.&lt;/P&gt;&lt;P&gt;I'm using the query transformation, which has a Python script option to generate my calculation.&lt;/P&gt;&lt;P&gt;The problem is that when I use the filter panel (inside the panel), the Python script is never updated and the data is still wrong.&lt;/P&gt;&lt;P&gt;I tried to use Visual Python, but I don't want to see the Python graphs, I need to use the python data to then visualize it in the Power BI graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked for several solutions, but I can't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here is a code I need to run:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# The data must be filtered before applying my python script

dataset['SMA'] = dataset.VALUE.rolling(2, win_type='gaussian').sum(std=3)

# After that, I need to show using Power BI charts&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 14:24:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-dynamically-filtered-database-in-a-python-script/m-p/1822537#M3675</guid>
      <dc:creator>Guilherme8482</dc:creator>
      <dc:date>2021-05-04T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use dynamically filtered database in a python script</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-dynamically-filtered-database-in-a-python-script/m-p/1994067#M3832</link>
      <description>&lt;P&gt;I am also looking for a similar solution. What did you do? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 23:32:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-use-dynamically-filtered-database-in-a-python-script/m-p/1994067#M3832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-02T23:32:54Z</dc:date>
    </item>
  </channel>
</rss>

