Skip to main content
Announcements
Do More with Qlik - Qlik Cloud Analytics Recap and Getting Started, June 19: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
dunnalahk123
Creator III
Creator III

trying to Aviod Negative symbol in QLikview

Hi,

I am trying to do one subtraction

first value is  - 246.4 but with below expression i am converting to 246.4 by removing negative symbol

second value is 134.9

so when try to do subtraction it is not working as expected it is giving me -381.2  but i want it should give me 111.5 which is 246.4-134.9

=num ( SUM ({<ScenarioLabel={'Actuals'},SubMetric={'R'}>} NumValue) ,'0.#;0.#' )  -

num ( SUM ({<ScenarioLabel={'Actuals'},SubMetric={'C'}>} NumValue) ,'0.#;0.#' )

can some one help me please why my condition is not working.

Thank You.

Best Regards,

HK

1 Solution

Accepted Solutions
Anonymous
Not applicable

4 Replies
prat1507
Specialist
Specialist

Use this

num ( FABS(SUM ({<ScenarioLabel={'Actuals'},SubMetric={'R'}>} NumValue)  -

SUM ({<ScenarioLabel={'Actuals'},SubMetric={'C'}>} NumValue) ),'0.#;0.#' )

Anonymous
Not applicable

just use fabs()

dunnalahk123
Creator III
Creator III
Author

HI Robin,

Thank You so Much. 🙂

dunnalahk123
Creator III
Creator III
Author

Hi Shastri,

Thank You so much 🙂