Hi,
for a SSRS 2005 report I've created two stored procedures, the first one that has some if ... else statement and for each statement I've written a complex SELECT to obtain some counting operation results. I've saved these results in variables. Fe, I've @Numerator_KPI, @Denominator_KPI and @KPI obtained as rate between @Numerator_KPI and @Denominator_KPI. I've tried to write this statement to do to return the stored procedure my results:
SET @KPI = @Numerator_KPI / @Denominator_KPI
SELECT @Numerator_KPI, @Denominator_KPI, @KPI
but any data appears for the related dataset inside my SSRS 2005 report.
I've tried to create a temporary table to insert these data and run a SELECT on this temporary table as the last statement of procedure, but with no results.
Any suggests to me, please? Thanks