Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 IIF statement

Author  Topic 

kdnichols
Posting Yak Master

232 Posts

Posted - 2006-12-18 : 14:44:33
Hello,

Can someone help me convert this to an IIf statement?

=Sum( Fields!MarketingCost.Value) / Sum( Fields!calc_TotalIncomeDollars.Value)

I get an inifinity error message in teh report.

TIA

Kurt

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-12-18 : 15:29:24
=IIF(SUM(Fields!calc_TotalIncomeDollars.Value) = 0, 0, SUM(Fields!MarketingCost.Value) / SUM(Fields!calc_TotalIncomeDollars.Value))


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

kdnichols
Posting Yak Master

232 Posts

Posted - 2006-12-19 : 09:15:25
Hello Peso,

BIG THANKS!! Works wonderfully!!

Haven't see you in a while.

Have a great day!



Kurt
Go to Top of Page
   

- Advertisement -