Oracle BI Publisher 12C two different fields show the same value when inserted to the BIP template
Below are three lines from my BIP Datamodel SQL
(SUBSTR(:P_TAXYR-2,3,2) ||'-'|| SUBSTR(:P_TAXYR-1,3,2)) AS PY1,
(SUBSTR(:P_TAXYR-1,3,2) ||'-'|| SUBSTR(:P_TAXYR,3,2)) AS PY2
FROM NYC_PROPMAST A
Substring required to concatenate and display the last two digits of two years as---> 19-20 and 20-21 depending on the year entered in the parameter.
I have inserted both fields PY1 and PY2 into my template body, not the heading.
I verified by executing the SQL that PY1 and PY2 contain different values as they should .
However when I insert PY1 and PY2 into the template body and run the report both PY1 and PY2 values are the same.