BusinessObjects Board

QaaWS - How to get Aggregated Values for a measure

Hi,

I have a QaaWS connection and as of now , It has 1 dimension & 4 measures. All measures have SUM() in select and also SUM at projection level in universe.

Now I have to add 2 more measures which are already there in the universe -

ObjA - (DTL.AMT*DTL.AMT_CNT)
ObjB - (DTL.SAL*DTL.SAL_CNT)

Both the objects have SUM in projection but not in SELECT. Due to which, the values are not getting aggregated in QaaWS output and it is leading to the massive data in Xcelsius dashboard and failing.

Can someone please guide me what solution I can try here to over come this issue? :frowning: :frowning: :frowning:


aniketp :uk: (BOB member since 2007-10-05)

Why don’t you look at using BIWs instead?

http://everythingxcelsius.com/xcelsius-training/xcelsius-and-business-intelligence-web-services-biws/3642


Mak 1 :uk: (BOB member since 2005-01-06)

Thanks Mak for your response.

Decision makers… :hb: :hb: :hb: … I am tired of telling them, don’t know what had gone into their mind and they just want to use QaaWS… :x :x :x and not at all ready to go for BIWS

And due to this, we are facing issues related to aggregation…:frowning: :frowning:


aniketp :uk: (BOB member since 2007-10-05)

I cannot see that you will get around this type of aggregation issue any other way.


Mak 1 :uk: (BOB member since 2005-01-06)

Why not correct the measure in the universe then and add SQL aggregation in the SELECT part! Only then is it a proper measure anyway IMHO


Andreas :de: (BOB member since 2002-06-20)

Thanks Mak, Andreas for your response.

Actually the requirement says - That we have to use the code without SUM in Select and this is how WEBI report is build. Now the data in WEBI and DASHBOARD needs to be in sync.

So I cannot change the existing Object, I can get one more added if it solves the problem, but Mak is right, it won’t solve.

Now I am thinking if the same logic can be put in DB or some solution can be worked out at DB level, so that I can get the field in universe and use the same in QaaWS with other measures objects…


aniketp :uk: (BOB member since 2007-10-05)

Just a bunch of balony that is; the measure is not defined properly in the universe, period ; -)

This again looks like an example where poor universe design bites you in the ass sooner or later…


Andreas :de: (BOB member since 2002-06-20)

I suspect that the issue lies with the granularity, i.e. if A*B is summed it will produce the wrong result?
If that is the case then, I would imagine, the data is not modelled correctly.


Mak 1 :uk: (BOB member since 2005-01-06)

Thanks Andreas , Mak for responses.

Not sure, I have just got into this project and A*B is definately not giving wrong results or you can say this is what Client is liking… :slight_smile: :slight_smile: :slight_smile:

And now same thing needs to be replicated in the dashboard. I guess we would need to see if something can be done at ETL level or else… For sure as of now, I don’t know. :crazy_face: :crazy_face:


aniketp :uk: (BOB member since 2007-10-05)

Well, it looks like it is performing the multiplication at a transaction level, so I would expect the results to be currently correct (data quality withstanding)


Mak 1 :uk: (BOB member since 2005-01-06)

True… Let’s see we are going to test with below logic -

=SUM((DTL.AMT*DTL.AMT_CNT)+(DTL.SAL*DTL.SAL_CNT))

But right now do not have access to UDT, so will share the results afterwards… :frowning: :frowning:


aniketp :uk: (BOB member since 2007-10-05)

=SUM((DTL.AMT*DTL.AMT_CNT)+(DTL.SAL*DTL.SAL_CNT)) 

Hey Mak, above code is working fine and giving the correct results… :+1:


aniketp :uk: (BOB member since 2007-10-05)

Cool. Looks like Andreas was correct in his earlier statements then :yesnod: .


Mak 1 :uk: (BOB member since 2005-01-06)

True… :yesnod: :yesnod: :+1:


aniketp :uk: (BOB member since 2007-10-05)