Solved

SSRS use a expression in calculation

Posted on 2014-08-01
3
415 Views
Last Modified: 2014-08-01
Hello Experts Exchange
I have a SSRS report that has a couple of calculated expressions, I want to take one of the expressions and use it in a new calculation.  Is there a way to may a expression a variable so I can use it in a calculation?

Regards

SQLSearcher
0
Comment
Question by:SQLSearcher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
Harish Varghese earned 500 total points
ID: 40233667
Yes. You can give a name to your first expression filed and refer to that as ReportItems in another expression. But there are restrictions in doing this when you use aggregate functions.
For example, if you use below expression in a cell in Taxlix and the name of that cell (TextBox) is txtAmount:
=Fields!Qty.Value * Fields!UnitPrice.Value

Open in new window

You can use below expression referring to above formula as:
=ReportItems!txtAmount.Value/100

Open in new window

0
 
LVL 15

Expert Comment

by:Vikas Garg
ID: 40233669
Hi,

Yes you can copy the value of your expression to a parameter and then can use that parameter in other expression or calculation

SSRS
0
 

Author Closing Comment

by:SQLSearcher
ID: 40233779
Thank you for your help.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

696 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