Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Sum

$
0
0
I am trying to Display the 3 values =SUM(IIF(Fields!Employee.Value = "FullTime",1,0),"Production") --- This will give the sum of Fulltime employees= SUM(IIF(Fields!Employee.Value = "Partime",1,0),"Production")---- This will give the sum of Part Time employees= Count(Fields!Employee.Value,"Production")--- This will give a count of all employeesThis returns correct result if there is a value coming in. But there are parameters passed where the Qyery returns no records , That means the Fields!.Employee value doesn't return any thing and the count of the row is zero. I can execute the query in SMS and see that no rows are displayed. I want to display "0" if there are no rows coming in but instead the entire tablix disappears.Can anyone advise what changes should I make to the expression?

Viewing all articles
Browse latest Browse all 2791

Latest Images

Trending Articles



Latest Images