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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

My chart alway display -ve line chart , how to make it +ve ?

Hi All

I need to make the below expression display as +ve , now it display as -ve :-

(

(rangesum(above(

Sum({$<YearMonth = {"<=$(=Date(addmonths(Max({$}[YearMonth]),-0),'YY MMM'))"},SOURCE_GL = {"TDSS"}

,[Reporting Code] = {

">=50010<=

50090"

     }

     , month = ,year=>}[Amount]/$(Columndim89))*-1,0,rowno())))

+

(rangesum(above(

Sum({$<YearMonth = {"<=$(=Date(addmonths(Max({$}[YearMonth]),-0),'YY MMM'))"},SOURCE_GL = {"TDSS"}

,[Reporting Code] = {

">=20006<=

20061"

     }

     , month = ,year=>}[Amount]/$(Columndim89))*-1,0,rowno())))

)

/

(rangesum(above(

Sum({$<YearMonth = {"<=$(=Date(addmonths(Max({$}[YearMonth]),-0),'YY MMM'))"},SOURCE_GL = {"TDSS"}

,[Reporting Code] = {

">=70010<=

70066"

     }

     , month = ,year=>}[Amount]/$(Columndim89))*-1,0,rowno())))

Paul

1 Reply
paulyeo11
Master
Master
Author

Hi All

Enclsoed below link is my QV Doc

https://www.dropbox.com/s/mgvhbggsulcekxe/QV4FS_ver317.qvw

Paul