Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Best Practice for Count distinct Objects?

$
0
0

Hi All,

 

Im working on recreating some BO 5.1.9 Universes in IDT BO 4.

In the old version there are some objects created with count distinct functions.

e.g.

Object name : Count of Students

Def : COUNT(DISTINCT TBL1.STUDENT_ID)

Projection function : SUM

As per my knowledge, this is not  recommended, as once the users start doing Roll ups in the report the object 'count of students' will not give the correct results. It will sum up the values which maynot be correct if there are duplicates in the data.

 

 

My question is what is the best practice to implement if you have such a requirement from the user. In the past i have stuck to creating the count distinct object at report level.Is that the best practice??

Also there is a 'delegated 'projection function available(which wasn tin the very old versions).I tried creating an object  with the definition:

 

Object name : Count of Students

Def : COUNT(DISTINCT TBL1.STUDENT_ID)

Projection function : Delegated

 

but that gives me incorrect results.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



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