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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

table with different row formulas in column

HI

need to show an excel like table where I have some items in rows that require different formulas.

Like:

OrderLabelValue
1KPI1sum(a)
2KPI2sum(b)
...

I have experimented with conditional expressions in a straight table like

     Dimension = Label

     Expression 1: =sum(a) with condition Order=1

     Expression 2: =sum(b) with condition Order=2

and using pick

     Expression 1: =pick(Order, sum(a), sum(b)

but both methods did not work.

Juerg

2 Replies
Not applicable
Author

Hi,

Try the below expression's:

Exp 1:

IF(Order=1, sum(a), IF( Order = 2,sum(b)))

Exp 2:

IF(Order=1, sum(a),sum(b))

Regards,

Desmortes

Not applicable
Author

The evaluation of Order seems not to happen on the row level. therefore the formula works only if a single Order value is selected?