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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.