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

Script like cumuletieve

Hi all,

Can you please explain how to implement bellow one.

XP

--------


1-(1-current record)

1-{(1-prev result)*(1-current record)}

:

:

:

:

And so on n th record

XP is field name

4 Replies
Not applicable
Author

Here i have the separate field for current , next recods.

Sales rate

-------------------

1

2

3

4

6

8

:

:

:

And so on n th record

Using this need to calculate in qv script.

Thanks.

sunny_talwar

What is the expected output here?

miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi there,

Do you have any kind of data that you want to implement this rate? Creating this out of nowhere to me seems dificult. Can you please attach a QVD or a QVW or even specify what for you need this rate?

Regards,

MB

settu_periasamy
Master III
Master III

Try like

If (rowno()=1,1-fieldname,(1-peek(XP))*(1-fieldname)) as XP