cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Powerbi_astra Regular Visitor
Regular Visitor

how to use date parameter

I have an Oracle pipelined function as my source query, and I want to create a date parameter in my powerbi..

 

Questions:

 

1. once I define the parameter, how can I "connect" that parameter to my source query ?

2. Looks like current value is a must, Is there anyway I can enter current date for current value as today ?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: how to use date parameter

Hi @Powerbi_astra ,

You can refer to the following links to know how to parameterize your connection string with query parameters:

Power BI Desktop Query Parameters, Part 1

parameterize connection

In addition, if you mean to pass your parameter to advanced T-SQL query to your database. You need to define your date parameter as text type then do type convert in T-SQL query string based on oracle date functions.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

2 REPLIES 2
Powerbi_astra Regular Visitor
Regular Visitor

Re: how to use date parameter

Actually, oracle function has a date parameter, is there a way I can pass a power bi parameter as input into this oracle function ?

Community Support Team
Community Support Team

Re: how to use date parameter

Hi @Powerbi_astra ,

You can refer to the following links to know how to parameterize your connection string with query parameters:

Power BI Desktop Query Parameters, Part 1

parameterize connection

In addition, if you mean to pass your parameter to advanced T-SQL query to your database. You need to define your date parameter as text type then do type convert in T-SQL query string based on oracle date functions.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 153 members 1,576 guests
Please welcome our newest community members: