Saturday, July 18, 2009

Custom Calculator can skip SetValue

One of the less familiar features of ClickAnalyze infrastructure is the handling of a permutation full of nulls.

To be more clear, let say that a report is made of Time and Geography dimensions, and then 2 custom calculators. Assume that for the permutation "July 19, 2009", "North-East", "Boston" both calculators get short list of assignments. Both calculator find that the total they need to calculate is 0 (zero). This can happen due to the fact that this is Sunday and the calculators are considering the engineers' calendars.

So, let say that both calculators will include code that skip the SetValue method, when the value is zero:
If Not (totalSeconds = 0) Then
pCalculatorsRowItem.SetValue(0, totalSeconds)
End If

The ClickAnalyze infrastructure identifies this as permutation with no data, means that all calculators skip the SetValue. By default, each report includes advanced property "Include Permutation With No Data" set to False. This means that our permutation will not be written to the database. Changing the property to True will cause the permutation to be written with nulls. This of-course might result with many more records full of redundant data.

Friday, July 17, 2009

Table with NoRows

While trying to understand why a table or matrix is not rendered in some reports I recently made (under Reporting Services 2005), I found that actually there was no data available for the table.

The simple solution for this problem was to set the NoRows property of the table or the matrix.

Why the default value of this property is empty string? I don't know! but it would be much easier if it wasn't.
 
HTML Hit Counter