Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Split data for specific cells only

Hello,

I have the following data:

TitleDwnIDTypeDownloads
Title11same20
Title21same0
Title32same40
Title42same0
Title53dif60
Title64dif80

and I want to split the Downloads for titles which have the same DwnID:

TitleDwnIDTypeDownloads
Title11same10
Title21same10
Title32same20
Title42same20
Title53dif60
Title64dif80

If I use Sum({<Type={'same'}>} Downloads/2) I get the right values for Titles which already have a Downloads value but for the rest the value stays '0'.

Any suggestions?

Kind Regards,

Ivelin

10 Replies
Not applicable
Author

I couldn't make the Join Load work with the applymap on and it looks like that's the very cause of the problem. If I remove it then each pair of Same Titles get assigned the full value and I can simply divide those by 2: If(Type='same', Sum(Downloads)/2, Sum(Downloads)). Removing applymap however, creates synthetic tables when I connect other data from other sources.