troubleshooting Question

Creating a chart in SSRS

Avatar of Gabe Lebron
Gabe LebronFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005SSRS
27 Comments1 Solution633 ViewsLast Modified:
I am trying to create a Chart In ssrs the Shows my end balance each month for the last 12
I asume i need to tweak my code  right now its pulling everything back to 2002 when we started this data base.   I only want to pull last 12 months.  Then all i want to show are 12 bars showing last 12 months of my ending balance.

00 being jan  01 being feb ans so on
   
SELECT     AcctHist.Acct, AcctHist.FiscYr, AcctHist.YtdBal00, AcctHist.YtdBal01, AcctHist.YtdBal02, AcctHist.YtdBal03, AcctHist.YtdBal04, AcctHist.YtdBal05, 
                      AcctHist.YtdBal06, AcctHist.YtdBal07, AcctHist.YtdBal08, AcctHist.YtdBal09, AcctHist.YtdBal10, AcctHist.YtdBal11, AcctHist.YtdBal12
FROM         Account AS Account INNER JOIN
                      AcctHist AS AcctHist ON Account.Acct = AcctHist.Acct
WHERE     (Account.Acct LIKE '10%') AND (AcctHist.LedgerID = 'ACTUAL') AND (AcctHist.CpnyID = 'INTEGRA')

from what I Know is FiscYr   Is my year column   and 00 is jan 01 is Feb 02 is march and so on.. So iwant ti to only go back 12 months give me the total for those months

 1
ASKER CERTIFIED SOLUTION
aelliso3

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 27 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 27 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros