*Copyright @ www.mycsg.in;


COMPUTE blocks in PROC REPORT - derived columns and conditional formatting

What is a COMPUTE block

Create sample data

Creating a derived column with a COMPUTE block

Define a COMPUTED column and calculate a percentage

Conditional logic inside a COMPUTE block

Flag rows based on whether actual met the target

Combine derived percentage and conditional status in one report

Using COMPUTE with BREAK and RBREAK

Add a derived column that also appears on group total rows

Key points to remember