Use ROUND() in SQL. Truncate the floating-point residue directly in your query so SQL Server strips out the invisible decimals before passing the dataset to SSRS:
SELECT ROUND(100.0 * A / NULLIF(B, 0), 4) AS Calculation Result
Use ROUND() in SQL. Truncate the floating-point residue directly in your query so SQL Server strips out the invisible decimals before passing the dataset to SSRS:
SELECT ROUND(100.0 * A / NULLIF(B, 0), 4) AS Calculation Result
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.