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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression problem...!!!

Dear All,

My basic expression is as follows.

ROUND(RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM))

The above formula was modified as follows to show only the negative values in the pivot table.

ROUND(ONLY({<RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM))={<"0"}>}RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM))

But the formula has a error in itself. Please help to find the correct formula(expression)

Regards,

Priyantha.

6 Replies
Not applicable
Author

Try this

i have added field (columnname) and created a variable (RANGESUM=RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM)=0)

ROUND(ONLY({<FIELD={"$(RANGESUM)"}>}RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM)))

check if it helps

Not applicable
Author

Dear Pooja,

Even your expression shows as "expression ok"  , expected result not achieved,

Regards,

Priyantha.

maxgro
MVP
MVP

maybe

if (

     RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM) <0,

     RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM)

     )

Not applicable
Author

Dear Priyantha,

if possible could you provide some sample data and expect result

MarcoWedel

RangeMin(ROUND(RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM)),0)


and maybe check "suppress zero values" in your chart.


hope this helps


regards


Marco

Not applicable
Author

Try with this


if (

     RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM) <0,

     RANGESUM(BRO_COMM,AGE_COM,+GRO_COM,-TOT_COM)

     )