Click here to Skip to main content
15,889,552 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When we have some calculated column in database for reports, which is best way to calculated it's value in case of SSRS report developement.
1. Calculate it in SSRS tablix
2. Calculate it from database and return as dataset

If I am duplicating this question then sorry for that, but I didn't got proper answer while googling.

Thanks,
Vishal
Posted
Comments
Jignesh Khant 20-May-14 4:26am    
Calculate in tablix because it's more efficient. SSRS provides expressions which can do all the calculations then why write query on server side.

I would prefer that if you simply want to apply aggregation like sum or average then you should do it at Report level but if you want to do calculations based on other columns values then it is better if you do at query level and then pass data set to the report.

Consider cases,
1. If you are getting so many records in report but from them by providing calculation you want to show less number of records in report then you should prefer to do that in your database query rather than report. I believe that run time calculation using expression at report level makes your report execution slower.

Priority I prefer,
First at database query side
Second at Report side if it is not possible or making complexity at database query level
 
Share this answer
 
Comments
Vishal D Kolekar 17-Jun-14 1:06am    
I have same assumptions at my end but don't have any idea how to rectify it.
Do you have any idea or any link I can refer it?
We can do it in both the ways. I'm usually doing calculation in the backend itself.

If you use aggregate controls like Total or something else, you should use expressions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900