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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

How to return negative numbers from sum of positive numbers

Here us my expression . It is calculated as positive but I need to show them as negative in a bar chart. The money format is not working

Sum({$<ScenarioVersionID = {$(CurrentScenarioID)}, Source = {'Earnings'}>} if(wildmatch(Line,'5a','5b','5c'), Amount))

Here is my number format :

Money    $#,##0;($#,##0)

1 Solution

Accepted Solutions
sunny_talwar

What if you do this

-Sum({$<ScenarioVersionID = {$(CurrentScenarioID)}, Source = {'Earnings'}, Line = {'5a', '5b', '5c'}>} Amount)

View solution in original post

1 Reply
sunny_talwar

What if you do this

-Sum({$<ScenarioVersionID = {$(CurrentScenarioID)}, Source = {'Earnings'}, Line = {'5a', '5b', '5c'}>} Amount)