<?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: Adding new Python source refreshes all other Python source tables in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Adding-new-Python-source-refreshes-all-other-Python-source/m-p/1779061#M28904</link>
    <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please uncheck these options so that only new data sources will be loaded when you click apply.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V-lianl-msft_0-1618821552004.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/497070i51C7DF1071E12CA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="V-lianl-msft_0-1618821552004.png" alt="V-lianl-msft_0-1618821552004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to refresh a single table, please refer to this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.fourmoo.com/2020/04/22/how-to-refresh-selected-not-all-tables-in-power-bi-desktop/" target="_self"&gt;https://www.fourmoo.com/2020/04/22/how-to-refresh-selected-not-all-tables-in-power-bi-desktop/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 08:39:21 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-04-19T08:39:21Z</dc:date>
    <item>
      <title>Adding new Python source refreshes all other Python source tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-new-Python-source-refreshes-all-other-Python-source/m-p/1772982#M28833</link>
      <description>&lt;P&gt;Whenever I add a new data source via Python to PowerBi it refreshes all other tables with a Python source. Is there any way to stop this from happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's an example of one code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hljs-keyword"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="hljs-keyword"&gt;as&lt;/SPAN&gt; pd

&lt;SPAN class="hljs-comment"&gt;# Set location source of CSV's&lt;/SPAN&gt;
data_location = &lt;SPAN class="hljs-string"&gt;'C:/Data Sources/'&lt;/SPAN&gt;

&lt;SPAN class="hljs-comment"&gt;# Data source CSV names&lt;/SPAN&gt;
base = &lt;SPAN class="hljs-string"&gt;f'&lt;SPAN class="hljs-subst"&gt;{ data_location }&lt;/SPAN&gt;BASE_DATA.csv'&lt;/SPAN&gt;
latest = &lt;SPAN class="hljs-string"&gt;f'&lt;SPAN class="hljs-subst"&gt;{ data_location }&lt;/SPAN&gt;LATEST_DATA.csv'&lt;/SPAN&gt;
customer_data = &lt;SPAN class="hljs-string"&gt;f'&lt;SPAN class="hljs-subst"&gt;{ data_location }&lt;/SPAN&gt;customer_data.csv'&lt;/SPAN&gt;

&lt;SPAN class="hljs-comment"&gt;# Load CSV's in to Dataframes&lt;/SPAN&gt;
df_base = pd.read_csv(base , dtype=&lt;SPAN class="hljs-built_in"&gt;str&lt;/SPAN&gt;, encoding=&lt;SPAN class="hljs-string"&gt;'latin'&lt;/SPAN&gt;)
df_latest = pd.read_csv(latest , dtype=&lt;SPAN class="hljs-built_in"&gt;str&lt;/SPAN&gt;, encoding=&lt;SPAN class="hljs-string"&gt;'latin'&lt;/SPAN&gt;)
df_customer = pd.read_csv(customer_data , dtype=&lt;SPAN class="hljs-built_in"&gt;str&lt;/SPAN&gt;, encoding=&lt;SPAN class="hljs-string"&gt;'latin'&lt;/SPAN&gt;)

&lt;SPAN class="hljs-comment"&gt;# Select only required columns and rename so all match&lt;/SPAN&gt;
df_base = df_base[[&lt;SPAN class="hljs-string"&gt;'CIDN_'&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;'CUSTOMER_NAME_'&lt;/SPAN&gt;]]
df_latest = df_latest[[&lt;SPAN class="hljs-string"&gt;'cidn'&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;'Company Name'&lt;/SPAN&gt;]]
df_latest = df_latest.rename(columns={&lt;SPAN class="hljs-string"&gt;"cidn"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"CIDN_"&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;"Company Name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"CUSTOMER_NAME_"&lt;/SPAN&gt;})
df_customer = df_maxim[[&lt;SPAN class="hljs-string"&gt;'CIDN_'&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;'CUSTOMER_NAME_'&lt;/SPAN&gt;]]

&lt;SPAN class="hljs-comment"&gt;# Merge and remove duplicates&lt;/SPAN&gt;
TBL_CUSTOMER_DATA = df_latest.append(df_base)
TBL_CUSTOMER_DATA = TBL_CUSTOMER_DATA.append(df_customer)
TBL_CUSTOMER_DATA.drop_duplicates(&lt;SPAN class="hljs-string"&gt;'CIDN_'&lt;/SPAN&gt;, inplace=&lt;SPAN class="hljs-literal"&gt;True&lt;/SPAN&gt;)

&lt;SPAN class="hljs-comment"&gt;# Final output&lt;/SPAN&gt;
TBL_CUSTOMER_DATA = TBL_CUSTOMER_DATA.reset_index(drop=&lt;SPAN class="hljs-literal"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Adding this code as a data source then refreshes every other Python data source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really frustrating as some of the other data sources are very large and take a long time (some can take hours) to refresh, which is exacerbated by the fact I need to connect to a VPN on the other side of the world to access them.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-new-Python-source-refreshes-all-other-Python-source/m-p/1772982#M28833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T20:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new Python source refreshes all other Python source tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-new-Python-source-refreshes-all-other-Python-source/m-p/1779061#M28904</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please uncheck these options so that only new data sources will be loaded when you click apply.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V-lianl-msft_0-1618821552004.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/497070i51C7DF1071E12CA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="V-lianl-msft_0-1618821552004.png" alt="V-lianl-msft_0-1618821552004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to refresh a single table, please refer to this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.fourmoo.com/2020/04/22/how-to-refresh-selected-not-all-tables-in-power-bi-desktop/" target="_self"&gt;https://www.fourmoo.com/2020/04/22/how-to-refresh-selected-not-all-tables-in-power-bi-desktop/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 08:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-new-Python-source-refreshes-all-other-Python-source/m-p/1779061#M28904</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-04-19T08:39:21Z</dc:date>
    </item>
  </channel>
</rss>

