Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Issue in getting the count when joined with time data

$
0
0

I noticed an issue with the calculation of the number of values after the change in the M_TIME_DIMENSION table. Basically it looks like now that we also have the granularity “hour” we get the calculated measure not as count 1, but count 24.

Here is what I mean:

 

The formulas I’ve used to calculate the number of are all similar to:  if("PriorityDescription"='Error',1,0) bzw. if("PriorityDescription"='Warning',1,0), etc.

 

In the systems (where we have granularity of „day“) we get as expected per row (ID) either count 1 or 0, only number of (total) Alerts is constantly 1. Aggregation type is always SUM

 

 

When I use the same formulas and aggregation in a system where we have granularity „hour“ then i get 24 and 0 instead of the expected 1 und 0

 

 

 

When you look at the count values in HANA Modeler (in data preview under „Distinct Values“) those seem to be correct  (Gesamt-Alerts: 657, Errors: 294; Warning: 265; Info: 98).

 

However when the aggregation is applied you then get the wrong values (everything multiplied by 24)


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>