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
 Development Tools
 Reporting Services Development
 Restrict Chart Horizontal Axis to last 12 hours
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MichelleMabbs
Starting Member

11 Posts

Posted - 01/03/2014 :  09:10:54  Show Profile  Reply with Quote
Hi there please can someone tell me how to restrict my chart to the last 12 hours

my hour is an int and is from 0 to 23 hours

Kind Regards
Michelle

Michelle

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/03/2014 :  09:44:42  Show Profile  Reply with Quote
Include a filter in query behind as below


WHERE hourfield > = DATEPART(hh,DATEADD(hh,-12,GETDATE()))
..

then in chart just choose field on corresponding axis

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
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.06 seconds. Powered By: Snitz Forums 2000