Hi Guys,
my report works fine in "Preview" and data can be present. But in report data is blank(Table can be present with column name). Below is my SQL query and i just paste the script into Dataset. and bound the table with the dataset. Do you know how to fix the issue?
declare @TotalSum int;
set @TotalSum=
(
select sum(DB1.[DB1_Estimate])
from DB1
right outer join [dbo].[DB2]
on DB1.ID=[DB2].ID
)
select
QueryData.[ Category] as [Category],
QueryData.EstimateTime as EstimateTime,
convert(float,Round(QueryData.EstimateTime*100.0/@TotalSum,2)) as Percentage,
@TotalSum as Total
from
(
select [DB2].[Category],ISNULL(sum(DB1.[DB1_Estimate]),0) as EstimateTime
from DB1
right outer join [dbo].[DB2]
on DB1.ID=[DB2].ID
group by [DB2]. [Category]
) as QueryData
order by QueryData.EstimateTime ASC