Solved

Reporting services Calculating whole numbers.

Posted on 2008-10-29
1
204 Views
Last Modified: 2008-10-30
Hello,  I usually try to do my report queries in T-SQL then use them in reporting services but I find myself unable to do that with an access database I am working with.

Here is what I am trying to figure out in Reporting servies 2005, for an expression.  Calculate cases and bottles sold.   Data is stored in Bottles.

I would do the following in T-SQL

QtySold (13) % BottlesPerCase (12) as Cases
QtySold (13) / BottlesPerCase (12) as Bottles
My two columns would be 1 case and 1 bottle.  PERFECT

In my Reporting services I have all of the same elements for the calculation but % is unknown to the expression editor.  I am sure that its probably a funtion but the descriptions are not helpful enought to make be use them.  
0
Comment
Question by:tjwent69
1 Comment
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 50 total points
ID: 22836636
does 'mod' work? Other languages often uses mod or modulus
 
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question