Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mjjuk
Helper I
Helper I

Where clause in Salesforce data

Is it possible to add a where clause to SF data??

 

i have

Let

source= Salesforce.data("https://######.me.salesforce.com",[createnavigationproperties=true]),

knowledge_kav = source{[Name="knowledge_kav"]}[Data]
in 

knowledge_kav

 

it shows an error which is asking for the published status to be stated - but how to I add a where clause into this ???

 

it would also be useful to have a where clause to reduce the initial number of records to be imported

 

thanks in advance 

2 REPLIES 2
Anonymous
Not applicable

@mjjuk 

It asks about publish status of Salesforce report? I guess you should go check the salesforce report status.

 

When you said where clause I guess your are saying if function or filters in power bi to reduce the data table rows? You can not do that before you load the data into power bi destkop. 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

It's a shame if you could treat it more like an Sql query then you would be able to join or even limit the number of rows in tables 

 

the actual error I get is 

datasource.error: implementation restriction: when querying or searching the knowledge_kav object, you must filter using the following syntax: id = [single id], Id in [list of ids] or published status = [status], in addition publishstatus is only permitted in top-level and condition. 
details:

[list]

how do you circumvent the error above if you can only have. 
= source{[Name="knowledge_kav"]}[Data]

thanks 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors