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
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 divide one column to another

Author  Topic 

nord
Posting Yak Master

126 Posts

Posted - 2013-05-16 : 14:50:46
Hi,
I have some report and i need to do column efficiency this is divide one column to another for ex a/b how i can write this because my 'b'
column somethimes =0,I tried like that but did't work
=IIF(Fields!Supply.Value<>0,(Fields!Sales.Value/Fields!Supply.Value,nothing)
Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-05-17 : 00:11:43
=(Fields!Sales.Value/IIF(Fields!Supply.Value<>0,Fields!Supply.Value,nothing))


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

nord
Posting Yak Master

126 Posts

Posted - 2013-05-17 : 10:53:55
thanks
Go to Top of Page
   

- Advertisement -