SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 divide one column to another
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nord
Posting Yak Master

122 Posts

Posted - 05/16/2013 :  14:50:46  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 05/17/2013 :  00:11:43  Show Profile  Reply with Quote
=(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

122 Posts

Posted - 05/17/2013 :  10:53:55  Show Profile  Reply with Quote
thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000