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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

web application with postgresql function parameters passing dynamic dates in to power bi

Hi

 

Front end web application we have start and end date values providing statically through back end postgresql . When we connect to direct query to power bi, static dates should be kept in dynamic dates. How to do it?

 

Requirement:

1. created postgresql function

 

create function get_item(id int, startdate date, enddate date)

Returns table( ......) as

Begin

--------

end

2. execute function

select * from get_item(123, '20-12-2017', '25-12-2017')

 

same executed function copied and paste it in power bi statically, its working fine.

Capture5.PNG

when we pass dynamic dates, it is throughing an error.

 

Data source error: columns "id" does not exist

 

can you please assit it?

 

Thanks

kunuthuri

 

 

 

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

It seems that you want to pass dynamic dates in to power bi from postgresql database.

 

There is a similar video about SQL Server database may help you.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

I tried to use the parameter in the same way that has been explained in video that you guided to other person, but I got the error as shown below:

Error.PNG

 

 

 

 

 

 

 

 

 

Here is the screen shot that shows you how I created the date parameter:

 

Parameter.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Could you please suggest me a solution. Thank you Smiley Happy

 

Thanks,

Shanmuga

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.