One of my report has two prompts called fiscal year and accounting period. But accounting period prompt is BETWEEN two values
Ex: Accounting period between 1 and 10( 1 is static but ending value can be selected from the LOV’s ranging from 1 to 12)
Assume that when user runs for fiscal year = 2008 and ending accounting period = 8 it works fine. I would like to place accounting period value on report header however when i try to pull accounting period object on report header its displaying from 1 to 8 but i want to see only number 8.
Instead of having your accounting period BEGIN and END in one filter, separate them into two different filters, where BEGIN is greater than or equal to a constant, and END is less than or equal to a prompt.
I tried adding two filters. I .e accounting_period greater than or equal to 1 and accounting_period less than or equal to prompt( nothing but LOV’s from 1 to 12). Reports runs ok.( ex : accounting_period = 9 and fiscal year = 2009)
Then pulled accounting period object onto report it displaying all accounting period from 1 to 9. But i just want to see 9 only.
Am i missing something? Can anyone please tell me how to get only period based on prompt value?
The text of your prompt has to be entered into the function exactly as it appears in the query filter. If your prompt doesn’t have the “;” in it, then take it out of the function in the variable.
My prompt has accounting period between 1 and End value( 10). When i use Reportfilter function and try to pull the variable into report it will list from 1 to 10
Ex: 1:2;3:4:5…10
Michael,
I corrected the formula and pulled the variable into report and it worked fine
The best way to get that is to use a calendar table in the database, and build the needed objects in the universe. Otherwise, it’s difficult and ugly to create that in the report.
The best way to show fiscal year and accounting period on report header its always advisable to get it from prompt condition but not from database field. That was mistake i did and realized later.
First created a variable V_Year
=ToNumber( UserResponse([Query 1];“Enter a Year:”))
Then created another variable:
= If ToNumber( UserResponse([Query 1];“Enter Accounting Period:” )) <= 6 Then [V_Year] -1 Else [V_Year]