Solved

SSRS use a expression in calculation

Posted on 2014-08-01
3
406 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
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 14

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now