Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6038951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:17:48+00:00 2026-05-23T06:17:48+00:00

I have created a query that uses a decimal as a paramater in SSRS.

  • 0

I have created a query that uses a decimal as a paramater in SSRS. Code below (@TrueDemand) when running this on my local PC, via the Data page the query throws an error of trying to convert nvarchar to int.
However when running it in Preview or even publishing the report to the web it runs fine 🙁

Error

Its very frustrating. Any ideas?

SELECT  AD.LogDate,
    AD.Location,
    AD.FunctionDescription as Func,
    AD.Offered,
    AD.Handled,
              AD.Handled +  ((AD.Offered - AD.Handled) * @TrueDemand) as TrueDemand,
    AD.Handled30,
    AG.SignedIn,
    AG.Available,
    AG.WorkloadSecs,
    AG.FullAHTSecs

FROM        dbo.vw_ApplicationDetail_Minus15mins AD
INNER JOIN  dbo.vw_AgentGroupDetail AG ON
    AD.Logdate = AG.Logdate AND
    AD.Location = AG.Location AND
    AD.FunctionDescription = AG.FunctionDescription

WHERE AD.Logdate between @Logdate  AND dateadd(d,1,@Logdate) AND
         AD.Location = @Location AND
         AD.FunctionDescription = @Function

ORDER BY AD.Logdate
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:17:49+00:00Added an answer on May 23, 2026 at 6:17 am

    Have you tried explicitly casting to decimal all the variables on that line.

    cast(AD.Handled as Decimal) + ((Cast(AD.Offered as Decimal) - Cast(AD.Handled as Decimal)) * Cast(@TrueDemand as Decimal)) as TrueDemand
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a request handler in Solr that uses dismax and limits my
I have an Excel spreadsheet that uses a TFS query to pull information on
I've created SQL command that uses INNER JOIN on 9 tables, anyway this command
I hope this makes sense. I have a ASP.NET web application that uses Entity
I have Axis2 created web service client. This service uses both SSL and WS-Security
I have a LINQ query that uses lambda syntax: var query = books .Where(book
I have pages within a site containing a control that uses a query string
I have created a PHP-script to update a web server that is live inside
I have created a UserControl that has a ListView in it. The ListView is
I have created a few small flash widgets that stream .mp3 audio from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.