Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
tan_chungkam
Creator
Creator

Return null when rangesum reach max value

Hi Qlikers,

I have below straight table and line chart showing accumulated progress.

I would like to return the figure to null from 2nd 100% onward.

My Original TableMy Original Table

Please find below my desire outcome.

My desire straight tableMy desire straight tableMy desire line chartMy desire line chart

Labels (1)
7 Replies
sugathirajkumar
Creator
Creator

if(sum(Progress)<>'0',rangesum(above( Sum([Progress]),0,rowno())),'Completed')

sugathirajkumar
Creator
Creator

clipboard_image_1.png

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try doing rangesum at script:

clipboard_image_0.png

Refer attached qvf for reference.

Thanks and regards,

Arthur Fong

tan_chungkam
Creator
Creator
Author

HI @Arthur_Fong ,

there is nothing in your attached qvf.

I don't see any script either formula in the table.

clipboard_image_0.png

tan_chungkam
Creator
Creator
Author

@sugathirajkumar ,

Thank you for you solution.

It works. However i have another question.

What is my first week start with a 0%. I would like to see 0% instead of a 'Completed' word.

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Sorry that i have overwrite the file.

Refer below is the updated qvf.

clipboard_image_0.png

Thanks and regards,

Arthur Fong

sugathirajkumar
Creator
Creator

=if(Sum(Progress)<>'0' and rangesum(above( Sum([Progress]),0,rowno())) <>'100',rangesum(above(Sum([Progress]),0,rowno())),'Completed') This will work perfect