Is there a way to program the average of non-zero rows only for a column of data in a table in an RDLC to view Microsoft reports?
those. 0 0 0 5 5 = 5 not 2
I tried Count (fields.n.value> 0) to get the number of nonzero rows, but it returned the number of all rows.
Thanks!
Eric -
Try the following:
=Sum(Fields!n.Value > 0) / Sum(IIf(Fields!n.Value > 0, 1, 0))
Notice how the average is calculated manually by summing all the values, then dividing by another amount, which mimics a specialized calculation mechanism.
Source: https://habr.com/ru/post/1310776/More articles:Experience with smooth interfaces? I need your opinion! - extension-methodshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1310772/custom-webcontrol-using-jquery-that-needs-to-work-inside-an-updatepanel&usg=ALkJrhjKtYb5t--L26yPQnGBXpz4T8G4fgGetting the object with the highest member value in hql? - javaRemove body element - javascriptWhy is the postgresql update request so slow sometimes, even with an index - performanceIs there any tool for converting multiline text for Visual Studio 2008/2005? - stringHow to crop a table using Spring JdbcTemplate? - springJavaScript function forwarding? - javascriptAssigning document.getElementById to another function - javascriptHow can I return a Future object using Spring without writing concurrency logic? - javaAll Articles