on 11-18-2010 5:00 AM
Hi BO Users ,
I have a requirement of creating a object in Universe with following definition :
Avg= ((Date1-Date2)*24) /Count(IDs)
After creating this object at Universe its throwing 😘 Error Not a Single group function *
Can anybody pls help me how I can achieve this Avg object in Universe .
Regards
Swapnil
Edited by: swapnil_taz on Nov 18, 2010 6:00 AM
create a Measure object of type Count (in the select have ID)
Create an Dimension object which holds your formula/(measure object you created)
Thanks,
ganesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swapnil,
When you are using a count function there should be group by clause so i guess you are not adding any dimension to your query and with the information provided we cannot help you a lot on this.
is the ID column from same table or different table?
Regards
Kunal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sachin ,
This is object in the Universe not in my report .
I am trying to create an Object In unverse with the Above definition .
Avg=((DAte1- Date2)*24)/Count (Ids)
I am getting this error while parsing this Object in Universe
Regardless of Whether this ID object belong to same or different table , I have checked Both the problem persist.
Regarsd
Swapnil
Edited by: swapnil_taz on Nov 18, 2010 9:55 AM
Hi Swapnil,
Keep the object Avg=((DAte1- Date2)*24)/Count (Ids) as it is and ignore the error when parsing this object.
In addition, create two new universe objects for Date1 and Date2 (saperate) as Dimension.
Include Date1 and Date2 objects in the data set (query) whenever you add Avg object in the report.
The idea is, when you select Date1 and Date2 objects as dimension object, BO will automatically include them in GROUP BY clause of the query.
I am sure this will resolve your problem.
Thanks,
Sachin Dalal
Please let us know your universe is pointing to which database(Oracle,SQL Server .. etc)
Also try to generate SQL using Tools->Query Panel Utility in designer.
This will be posible if you save this object though the object could not parse.
This will help you to identify the incorrect syntax in the query itself.
Thanks,
Sachin Dalal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.