简体   繁体   中英

SSRS Reports, Group filtering

I have groups with specific filters. Within these groups I have few "Count" expression with conditions. All works great. But when group doesn't have any elements then it disappears. But I need to show in "Count" cells "0" for this group. How can I do this?

Here are two suggestions.

In your query use an ISNULL function.

 Select
 ISNULL(YourExpression, 0)
 From Table

In SSRS Use an expression for the fields you want to eliminate nulls.

 iif(fields!Field.Value is nothing , 0 , Fields!Field.Value)

Hope this helps :)

使用下面的表达式:

=iif(isnothing(Field!Name.value),0,count(Field!Name.value))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM