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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors