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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
AllanXu
Helper II
Helper II

SQL Server large tables: how to ask user for the data date range being imported into PBI?

Hello,

 

I have a very large SQL server table that I need to create a PBI report based on.

 

There is no way to import all of the table's data into PowerBI. 

 

Each record has a date.

 

Is there any way to ask user the date range of the records when he refreshes data?

 

Thank you,

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

 

@AllanXu

 

In this scenario, you can use Query Parameter in your Power Query.

 

Just create two parameters StartDate and EndDate.

 

3.PNG

 

It will query/refresh data based on the current value in the parameters.

 

777.PNG

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

 

@AllanXu

 

In this scenario, you can use Query Parameter in your Power Query.

 

Just create two parameters StartDate and EndDate.

 

3.PNG

 

It will query/refresh data based on the current value in the parameters.

 

777.PNG

 

Regards,

One option is query parameters.

 

Another one is creating partitions at database level and adding proper where condition in source query, which will improve the performance and restricts data at required time period.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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