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
prainw
Regular Visitor

parameter usage in query

Why do I receive a 'ORA-00936: missing expression'  with the query below?

I'm new to PBI.   I have a parameter P_AIDYEAR but I can't seem to determine

how to use that parameter in a query.   I think I'm subposed to call it like this   @P_AIDYEAR

but that doesn't work.  Suggestions?

 

select distinct

           RPRATRM_FUND_CODE

    from  FAISMGR.RFRBASE  RFRBASE,

             FAISMGR.RPRATRM RPRATRM

where RFRBASE.RFRBASE_FUND_CODE  =  RPRATRM.RPRATRM_FUND_CODE

  and  @P_AIDYEAR  =  RPRATRM.RPRATRM_AIDY_CODE

order by  RPRATRM_FUND_CODE

1 ACCEPTED SOLUTION
prainw
Regular Visitor

Thank you for your reply.  I was able to resolve the issue.   I was using  @  and should have been using  :

example: when referencing my parameter in the query I should have   :P_AIDYEAR  instead of @P_AIDYEAR

Thanks!

View solution in original post

2 REPLIES 2
prainw
Regular Visitor

Thank you for your reply.  I was able to resolve the issue.   I was using  @  and should have been using  :

example: when referencing my parameter in the query I should have   :P_AIDYEAR  instead of @P_AIDYEAR

Thanks!

lbendlin
Super User
Super User

Where does that parameter come from?  Is it defined in Power Query?  Is it a text value or a number?

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.