Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

allocating sum according to calculated share

Hi,

I need to allocate products revenue to a certain product (service).

alloc1.png

My data:

allocdata.png

Only products that are marked with the flag "In Report?" should be taken into account.

The service product is marked with the flag "Service?".

I fail to achieve it with Set Analysis. Maybe it's not feasible?

I used the expression:

sum({<Service?={1}>}Revenue)
*
(
sum({<[In Report?]={1}>} Revenue)
/
sum( TOTAL{<[In Report?]={1}>} Revenue)
)

Attached is a sample model  I built.

Thanks in advance!

 

Labels (3)
1 Solution

Accepted Solutions
jochem_zw
Employee
Employee

please try

sum(total {<[Product Name]=,Service?={1}>}Revenue)
*
(
sum({<[In Report?]={1}>} Revenue)
/
sum( TOTAL{<[In Report?]={1}>} Revenue)
)

 

View solution in original post

2 Replies
jochem_zw
Employee
Employee

please try

sum(total {<[Product Name]=,Service?={1}>}Revenue)
*
(
sum({<[In Report?]={1}>} Revenue)
/
sum( TOTAL{<[In Report?]={1}>} Revenue)
)

 

dafnis14
Specialist
Specialist
Author

Brilliant!

 

Thanks!