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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Limiting data pulled from D365 FO into Power BI

I've successfully connected, and can pull entire entities into PowerBI, but given the size of our tables this takes a great deal of time.  I'd like to constrain what is pulled, say the last 7 days of orders created.  I've tried the following (along with a few variations on the syntax), but I still receive the entire table (entity) into Power BI.  

 

Am I stuck with Power BI always pulling the entire entity, then I filter out once ALL the data is within Power BI?  (booo!)

 

let
Source = OData.Feed("https://XXXXX.sandbox.operations.dynamics.com/data", null, [Implementation="2.0"]),
SalesOrderLines_table = Source{[Name="SalesOrderLines",Signature="table"]}[Data],
dbo_ShipDate = SalesOrderLines_table{[Schema="dbo", Item="RequestedShippingDate"]}[Data],
#"Filtered Rows" = Table.SelectRows(dbo_ShipDate, each [RequestedShippingDate] > Date.AddDays(DateTime.LocalNow(), -7))
in
SalesOrderLines_table,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think I solved my own problem.  

 

Here's the query that worked.

 

let
Source = OData.Feed("https://xxxxx.sandbox.operations.dynamics.com/data", null, [Implementation="2.0"]),
SalesOrderLines_table = Source{[Name="SalesOrderLines",Signature="table"]}[Data],
#"Filtered Rows" = Table.SelectRows(SalesOrderLines_table, each Date.IsInCurrentQuarter([RequestedShippingDate]))
in
#"Filtered Rows"

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I think I solved my own problem.  

 

Here's the query that worked.

 

let
Source = OData.Feed("https://xxxxx.sandbox.operations.dynamics.com/data", null, [Implementation="2.0"]),
SalesOrderLines_table = Source{[Name="SalesOrderLines",Signature="table"]}[Data],
#"Filtered Rows" = Table.SelectRows(SalesOrderLines_table, each Date.IsInCurrentQuarter([RequestedShippingDate]))
in
#"Filtered Rows"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.