web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 9H3PEUiYRkr7EtFXCjL/JG
Power Apps - Power Query
Unanswered

I can't filter OData query data at the source without generating a hand-authored queries error

Like (0) ShareShare
ReportReport
Posted on 12 Apr 2024 16:28:19 by 2

I have some OData queries that retrieve data from Azure. These queries are quite large, and I need to filter the data at the source to work with it effectively. However, if I include filters in the OData query at the source, I encounter an issue when publishing to Power BI - I receive the error 'some data sources may not be listed because of hand-authored queries.

Is there a way to filter the data at the source without causing this publication problem?

Below is one of my OData queries

let
Fonte = OData.Feed(
Link_Azure & "/WorkItemRevisions?" &
"$apply=filter(" &
"WorkItemType in ('Feature', 'Technical Feature','Incident','Bug','User Story','Technical Story') " &
"and (Area/AreaLevel3 eq 'ABAX'" &
"or Area/AreaLevel3 eq 'HBNFe'" &
"or Area/AreaLevel3 eq 'Thoth'" &
"or Area/AreaLevel3 eq 'Belaz'" &
"or Area/AreaLevel3 eq 'Aurora Sirius'" &
"or Area/AreaLevel3 eq 'Promax'" &
"or Area/AreaLevel3 eq 'Novo ABdocs'")" &
"and CreatedDate ge " & DateTime.ToText(DateTime.FromText("2023-07-01T00:00:00Z"), "yyyy-MM-ddTHH:mm:ssZ") & ")" &
"&$orderby=WorkItemId desc, Revision Desc" &
"&$select=WorkItemId, Revision, RevisedDate, Title, WorkItemType, ChangedDate, CreatedDate, State, Reason, ActivatedDate, ClosedDate, ResolvedDate, DueDate, FinishDate, StartDate, StateChangeDate, Custom_Impediment,Area",
null,
[Implementation="2.0"]
)
in
Fonte

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics