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

Set analysis working fine with qlikview and not working with sense

Hello, we recently moved from view to sense. I created a table with this formula

sum({$ <
[Registration year] ={"<=$(Previous Year)"},
[Type] = {"Pat"},
[Code] = [Code] - {"CHB","APB"},
[Level 5] = [Level 5] - {"999"}
>}
[Value])

This works pefectly in view but gives 0 in sense. the problem seems to be  

[Registration year] ={"<=$(Previous Year)"},

even if I change it into 

[Registration year] ={"<=2022"},

it seems not working. 

What am I doing wrong? 

Thank you in advance for your help!

 

Labels (2)
1 Solution

Accepted Solutions
Adam_Romanowski
Partner - Contributor III
Partner - Contributor III

It looks like field [Registration year] isn't interpreted as date or number.

View solution in original post

5 Replies
vincent_ardiet_
Specialist
Specialist

Weird...
And is it working with [Registration year] ={2022} ?

diegomyd83
Contributor III
Contributor III
Author

If I change it into

[Registration year] ={'=2022'},

it gives a result (not sure if correct)

adding < it stops working

Adam_Romanowski
Partner - Contributor III
Partner - Contributor III

It looks like field [Registration year] isn't interpreted as date or number.

diegomyd83
Contributor III
Contributor III
Author

any idea on how i can force it? 

Adam_Romanowski
Partner - Contributor III
Partner - Contributor III

In script:

num#([Registration year]) as [Registration year]