Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building a conditional SUM
Message
From
24/12/1998 15:17:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/12/1998 22:00:20
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00170147
Message ID:
00170378
Views:
18
>Hi all,
>
>I need to build a conditional SUM and I want to include it in a Report.
>I have the following instruction that works in an SQL statement but not like a fixed field at report´s feet.
>
>SUM(IIF(a.plan,a.val_cuot,a.amount)) AS n_amount.
>
>TIA

Just put the IIF() only in the report field, and set it to calculate the sum (rightclick the field).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform