Sum function with condition :?

Dimiter TsukevDimiter Tsukev Sofia, Bulgaria
edited 5:25AM in FastReport 4.0
I'm wondering can I make [SUM(<frxDBDayRep."AMOUNT">,MasterData1)] but with the condition when frxDBDayRep."CURRENCY" = 'EUR' :? I can make it with code but I don't really want to .. >   Not because I'm lazy but if there is already a way.. Why to do it again>

Comments

  • gpigpi
    edited 5:25AM
    Try to use IIF function
    [SUM(IIF(<frxDBDayRep."CURRENCY"> = 'EUR', <frxDBDayRep."AMOUNT">, 0), MasterData1)]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.