REP-1314: Format Trigger ‘xxx’ references column ‘yyy’ at a wrong frequency’


I have 2 queries in report builder
Q1 as header
Q2 as detail

I want to show description column with the condition below,
When Q1 has detail in Q2, then my report will display Q2 description.
If Q1 has no detail in Q2 then it display Q1 description.

When i try modify the field and run report, i get
REP-1314: ‘Format Trigger ‘F_DESCRIPTION’ references column ‘REMARKS’ at a wrong frequency’

so i take this action to solve the problem:
I use summary column (CS_1) at Q1 that count Q2 records. Then then the trigger should be,

IF :CS_1 > 0 THEN
RETURN (FALSE);
ELSE
RETURN (TRUE);
END IF;

Voila ^_^

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: