Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This action sequence will compose the following queries:
If the user selects the department report, the query will look like this:

select

{color:red}

department

{color}

as

column1,

 sum

 sum(actual)

from

quadrant_actuals

where

region

=

'{region}'

group

by

{color:red}

department

{color}

order

by

actual

desc

Panel
Wiki Markup

If the user selects the position report, the query will look like this:

select

{color:red}

positiontitle

{color}

as

column1, sum(actual)

from

quadrant_actuals

where

region

=

'{region}'

group

by

{color:red}

positiontitle

{color}

order

by

actual

desc

Panel
Wiki Markup

Note that in both cases, the first column is selected and renamed as column1. This is an important thing to note because when the report is built using the Report Design Wizard, column1 will be the column that's used for getting at the data.

...