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)
 And =
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sz1
Constraint Violating Yak Guru

United Kingdom
457 Posts

Posted - 12/03/2012 :  09:43:09  Show Profile  Reply with Quote
Hi

Im trying to do a simple and function with the expression:

=AVG(Fields!Day_Average.Value, "OpenCalls_24_0") AND Fields!ASSIGNED_GRP_NAME.Value = 'Level1'))

can someone help please?

Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/03/2012 :  10:05:02  Show Profile  Reply with Quote
sounds like this?

=AVG(IIF(Fields!ASSIGNED_GRP_NAME.Value = 'Level1',Fields!Day_Average.Value,Nothing), "OpenCalls_24_0")


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sz1
Constraint Violating Yak Guru

United Kingdom
457 Posts

Posted - 12/03/2012 :  10:15:43  Show Profile  Reply with Quote
Getting error with this:
=AVG(IIF(Fields!ASSIGNED_GRP_NAME.Value = 'L1 All Towers',Fields!Day_Average.Value,Nothing), "OpenCalls_24_0")))

There is a syntax error in the Value expression for the textrun ‘Textbox31.Paragraphs[0].TextRuns[0]’: ‘)’ expected
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/03/2012 :  10:25:30  Show Profile  Reply with Quote
please use it as suggested. you have lot of unwanted )s

=AVG(IIF(Fields!ASSIGNED_GRP_NAME.Value = 'L1 All Towers',Fields!Day_Average.Value,Nothing), "OpenCalls_24_0")


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sz1
Constraint Violating Yak Guru

United Kingdom
457 Posts

Posted - 12/03/2012 :  11:08:50  Show Profile  Reply with Quote
Thank you...:)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/03/2012 :  11:24:19  Show Profile  Reply with Quote
welcome

also 'L1 All Towers' should be "L1 All Towers"

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.11 seconds. Powered By: Snitz Forums 2000