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

  • Home
  • SEARCH
  • 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 query that uses a left join. For reasons I don't
I have created a T-SQL query in SQL Server 2008 R2 that is a
I have a query that creates a result set like this: Rank Name 1
I have an NHibernate query that looks like this: var query = Session.CreateQuery(@ select
I have created my database by this sql query: (CREATE DATABASE + DBName +
I have a form where when it was created it will this query public
I have created a request handler in Solr that uses dismax and limits my
I've created SQL command that uses INNER JOIN on 9 tables, anyway this command
The code below is from a Sinatra app (that uses DataMappe), which I am
I have following C# code that uses Entity Framework Code First approach. The tables

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.