Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
psk180590
Creator III
Creator III

Set Analysis without Aggregation in TextBox

Hello All,

I have a data table in below format

YearProductValue
2017N152.80
2018N156.93
2017N230.98
2018N225.18

From the above table i'm looking to have two text boxes for each Product showing the differnce in Value versus Last year.

Text Box 1: 4.13

Text Box 2: -5.80

If i use the Sum in Set Analysis it gives me a completely wrong value. Please, help me in getting this without any AGgregation function.

TIA!!

1 Solution

Accepted Solutions
sunny_talwar

How can you use set analysis without using any Aggregation? You will need to use Sum, Avg, Only to use set analysis... try this

Test Box 1

Sum({<Year = {'2018'}, Product = {'N1'}>}Value) - Sum({<Year = {'2017'}, Product = {'N1'}>}Value)

Test Box 2

Sum({<Year = {'2018'}, Product = {'N2'}>}Value) - Sum({<Year = {'2017'}, Product = {'N2'}>}Value)

View solution in original post

5 Replies
sunny_talwar

How can you use set analysis without using any Aggregation? You will need to use Sum, Avg, Only to use set analysis... try this

Test Box 1

Sum({<Year = {'2018'}, Product = {'N1'}>}Value) - Sum({<Year = {'2017'}, Product = {'N1'}>}Value)

Test Box 2

Sum({<Year = {'2018'}, Product = {'N2'}>}Value) - Sum({<Year = {'2017'}, Product = {'N2'}>}Value)

vijetas42
Specialist
Specialist

do you want to show difference between values for year 2018 and 2017 for each product in text box?

shiveshsingh
Master
Master

Do you mean to get the desired results without SUM( Aggr func)? It's not possible i guess.

psk180590
Creator III
Creator III
Author

I used Only to get my desired result

psk180590
Creator III
Creator III
Author

Thanks all.