Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
janus2021
Contributor III
Contributor III

Error using RangeSum missing a (

Hi.
Where do I write wrong. What I want to achieve is to first make sure you start from the current period + that a field should be OnG.
Then everything must be counted from current and 6 months back.
It claims that there is no parenthesis.

Code:
RangeSum (below (Sum ({<[Period] =>} [EmpF] = {'OnG'}), [DepA] =>} [Nrb_Emp_ex]), 0.6) /
RangeSum (below (Sum ({<[Period] =>} [EmpF] = {'OnG'}), [DepA] =>} [Nrb_Emp]), 0.6)

Labels (1)
1 Reply
marcus_sommer

Bothe rangesum() are missing their closing brackets and below() expects integer as parameter. Also the set analysis syntax isn't correct because you tries to add multiple sets but not connecting them in an way. Your expression might be therefore looking like:

RangeSum (below (Sum ({<[Period] =,  [EmpF] = {'OnG'}, [DepA] =>} [Nrb_Emp_ex]), 0, 6)) /
RangeSum (below (Sum ({<[Period] =, [EmpF] = {'OnG'}, [DepA] =>} [Nrb_Emp]), 0, 6))

- Marcus