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

nikoo56
Starting Member

19 Posts

Posted - 03/19/2012 :  12:57:16  Show Profile  Reply with Quote
I have this expression in my report:

=floor(Avg(Fields!final_rep_response1.Value)/60) & ":" & Avg(Fields!final_rep_response1.Value) mod 60



It return as for example: 19:30.400000000001

I like to return as 19:30.

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 03/19/2012 :  13:05:21  Show Profile  Reply with Quote
=floor(Avg(Fields!final_rep_response1.Value)/60) & ":" & Round(Avg(Fields!final_rep_response1.Value) mod 60)
Use Fix function if you want to truncate rather than round.
Go to Top of Page

nikoo56
Starting Member

19 Posts

Posted - 03/19/2012 :  13:28:39  Show Profile  Reply with Quote
Thanks it worked.

quote:
Originally posted by sunitabeck

=floor(Avg(Fields!final_rep_response1.Value)/60) & ":" & Round(Avg(Fields!final_rep_response1.Value) mod 60)
Use Fix function if you want to truncate rather than round.

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