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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Aregets
New Member

How do I pull Many-Date requests?

I have 2 endpoints that most of my data comes from that uses "/{Start Date}/{End Date}"

For this I have made a parameter for the {Start Date} to begin where our data starts, and a parameter for {End Date} being "Today()" and just filter the data as needed.

I now added an Endpoint that uses "/{Business Date}" that only pulls single dates.

While trying to figure this out, I have also realized that some of my "/{Start Date}/{End Date}" endpoints request returns no DATE to help reference.

Question 1: Is there a way to pull a request for each "/{Business Day}"? (like a loop?)

Question 2: How would I handle receiving the "/{Start Date}/{End Date}" endpoint that has no DATE reference? Could I also pull each day with solution from Question 1 and conditionally add a DATE column myself?

2 REPLIES 2
V-yubandi-msft
Community Support
Community Support

Hi @Aregets ,

Thank you for reaching out to Microsoft Fabric.

1. Using a list accumulation approach in Power Query within Power BI. This technique essentially functions like a loop, generating a list of business days and then making API calls for each date.

Link:  List.Accumulate - PowerQuery M | Microsoft Learn.

 

2.  The issue of receiving the /{Start Date}/{End Date} endpoint with no date reference can be resolved by setting up incremental refresh in Power BI. This approach ensures efficient data updates.

An official Microsoft document has been attached, providing detailed information on this topic. Please review it when possible for further insights.

Link: Configure incremental refresh for Power BI semantic models - Power BI | Microsoft Learn.

 

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

ronrsnfld
Super User
Super User

Question 1: You can use List.Accumulate.

Question 2: I don't understand what you mean. If there is no data between [Start Date] and [End Date] there's nothing to pull. If  there is, ensure your filter checks for dates between as well as the actual dates ege: data >=[Start Date] and data <=[End Date].

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.