Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASE and formula completion w/calculation

Status
Not open for further replies.

wesleycrusher

Technical User
Sep 30, 2003
61
US
My statement is:

round(365/rwh_model.energy_factor*
CASE
WHEN rwh_model.gas_type='propane' THEN 41045/91,333*95.500
WHEN rwh_form.energy_source='oil' THEN . 41045/138,700*149.793 END) AS EAECkbtu,

Yes, I can (and will if I have to) calculate out the portion of the formula after the "THEN" but I was wondering if there was a way to make it actually calculate it out. It will work with a single value after the "THEN" but not like it is above. Any tricks I'm missing?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top