cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA Cloud - Calculation Views Transparent Filters flag

patty_1982
Contributor
0 Kudos

Hello gurus

I am facing some issues during the calculation view creation on a BAS project that i should consume through a cap service. This is the aggregation scenario 

patty_1982_0-1708627199713.png

 

I have a cube. In the first projection there is another calculation view with a lot of fields. I have to create an aggregation to get a couple of measures. this is the content of Aggregation Node

patty_1982_1-1708627199714.png

 

To perform my aggregation i only need 3 fields CC_DESC, PS_TIPOLOGIA and PS_CONTRATTO_TERMINATO but I would like to use the QU_DESC just as a filter in the where condition. Conceptually, the query should be this one:

select CC_DESC, PS_TIPOLOGIA, PS_CONTRATTO_TERMINATO, sum(PS_ATTIVO_NUM) as total from table where QU_DESC = 'XXX' group by CC_DESC, PS_TIPOLOGIA, PS_CONTRATTO_TERMINATO

to do this, I did set QU_DESC as a Transparent Filter in my aggregation node

patty_1982_2-1708627199673.png

 

but unfortunately QU_DESC field is always in the group by so the measures of my aggregation is giving me a wrong result because it is considering QU_DESC in my group by.

patty_1982_3-1708627199711.png

 

 

 

 

I am in the same condition showed in the official documentation https://learning.sap.com/learning-journeys/develop-data-models-with-sap-hana-cloud/working-with-aggr...

patty_1982_4-1708627199715.png

 

so i am not understanding if it is due to my mistakes or i am facing a bug of Hana DB template project into BAS.

Any ideas?

Thanks in advance

KRs

Patty

Accepted Solutions (1)

Accepted Solutions (1)

patty_1982
Contributor
0 Kudos

I solved the issue. It was due to Graphical Editor. If I set the Transparent Filters flag on the first projection node it works correctly instead to set it on Aggregation Node

Answers (0)