<?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: Salesforce Data Source Where Clause? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/358726#M10671</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46997"&gt;@nrawlins&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If a fixed list does not work, then it might be not supported.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 09:27:08 GMT</pubDate>
    <dc:creator>v-chuncz-msft</dc:creator>
    <dc:date>2018-02-15T09:27:08Z</dc:date>
    <item>
      <title>Salesforce Data Source Where Clause?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/356522#M10621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to query a Salesforce Datasource using the Salesforce API in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am having is that the Salesforce API requires the SOQL to either contain a WHERE clause on the specific query being performed, by using an explicit value "=" or a IN operator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use something like the following&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;each ([Column] = "value")&lt;/PRE&gt;&lt;P&gt;It works, however if I try and pass a list like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;each List.Contains(myList, [Column])&lt;/PRE&gt;&lt;P&gt;It fails with an error because the SOQL query being executed in the background clearly does a filtering AFTER all the data has been returned (i.e being filtered in Power BI after its been retrieved and not at source) and the Web API is expecting a IN operating with a list of values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards to the first query, this works because the SOQL in the background is WHERE (MyField = 'someValue')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ways around this? Can Power BI pass a collection into a where clause some way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, I thought about querying the records by a single value and looping through this but it will have performance issues and not the best way of doing such query!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried joining the tables on the field I need but it also looks like the joins are performed after the data is retrived and not before (using SOQL).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot modify the Web API to support other queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/356522#M10621</guid>
      <dc:creator>nrawlins</dc:creator>
      <dc:date>2018-02-12T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Data Source Where Clause?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/358726#M10671</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46997"&gt;@nrawlins&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If a fixed list does not work, then it might be not supported.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/358726#M10671</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-02-15T09:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Data Source Where Clause?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/4043827#M54195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46997"&gt;@nrawlins&lt;/a&gt;&amp;nbsp;were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector, which pulls data directly from SF objects API and lets you pre-filter the data on the tool's UI. This means you can export filtered data to PBI based on what you need and this would improve your report's performance. I've tried&amp;nbsp;windsor.ai, supermetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options.&amp;nbsp;In case you wonder,&amp;nbsp;to make the connection&amp;nbsp;first&amp;nbsp;search for the Salesforce connector in the data sources list:&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="SALESFORCE-1.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1125964i8EEE68A0B98051C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="SALESFORCE-1.png" alt="SALESFORCE-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, just grant access to your Salesforce account using your credentials, then on&amp;nbsp;&lt;STRONG&gt;preview and destination&lt;/STRONG&gt;&amp;nbsp;page you will see a preview of your Salesforce fields:&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="SALESFORCE-2.png" style="width: 998px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1125998iECF75ED2B7D758CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="SALESFORCE-2.png" alt="SALESFORCE-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There just select the fields you need. It is also compatible with custom fields and custom objects, so you'll be able to export them through windsor.&amp;nbsp; Finally, just select PBI as your data destination and finally just copy and paste the url on&amp;nbsp;&lt;STRONG&gt;PBI --&amp;gt; Get Data --&amp;gt; Web --&amp;gt; Paste the url.&lt;/STRONG&gt;&amp;nbsp;&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="SELECT_DESTINATION_NEW.png" style="width: 998px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1125987i210C14E25A66BAE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="SELECT_DESTINATION_NEW.png" alt="SELECT_DESTINATION_NEW.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:09:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Salesforce-Data-Source-Where-Clause/m-p/4043827#M54195</guid>
      <dc:creator>ReportRanger</dc:creator>
      <dc:date>2024-07-16T08:09:02Z</dc:date>
    </item>
  </channel>
</rss>

