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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yyhk123
Frequent Visitor

Import large number of data from Azure cosmos DB

Hi,
I am trying to import large number of data fromo Azure cosmos DB. However becuase it is so large, i am trying to limit the number by setting it to import only the past 90 days of data.

This is what i have done to import, input URL, input Database, Collection, and SQL statement as:
SELECT * FROM c WHERE c.metadata[0].modified_at < GetCurrentDateTime() and c.metadata[0].modified_at > DateTimeAdd("dd",-30,GetCurrentDateTime())

 

the date is stored in c.metadata[0].modified_at.

 

However the above query is not loading to the Power BI. Am I doing something wrong?
is there another way to bring only 90 days worth of data from azure cosmos db?

 

thanks!

1 REPLY 1
lbendlin
Super User
Super User

Shouldn't CosmosDB be fast enough for Direct Query?

 

Alternatively, have you considered Incremental refresh?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.