Skip to main content
Announcements
Qlik Community Office Hours, March 20th. Former Talend Community users, ask your questions live. SIGN UP
cancel
Showing results for 
Search instead for 
Did you mean: 
khanashique
Creator II
Creator II

Set expression on row level

Hi experts,

I have define a set expression which works on specific condition, but it doesn't work on row level without condition:

eg: (sum({<Year = {2017},Item = {'Books'}>}sales)-sum({<Year = {2018},Item = {'Books'}>}sales))*sum({<Year = {2018}>}amount) --> this expression works.

but the same expression on row level in a table without condition doesn't gives the expected result.

eg: (sum({<Year = {2017}>}sales)-sum({<Year = {2018}>}sales))*sum({<Year = {2018}>}amount) --> this expression works.

Do i need to add some other expression to my current set expression, kindly advise.

 

Thanks,

MAK.

Labels (2)
1 Solution

Accepted Solutions
khanashique
Creator II
Creator II
Author

i was able to solve the expression, please see below:

sum(<Item>sales)/sum(<Item>amount)

View solution in original post

3 Replies
Anil_Babu_Samineni

You have only Item dimension or anything else?

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
khanashique
Creator II
Creator II
Author

One item condition was just an example, to check if the expression works...

khanashique
Creator II
Creator II
Author

i was able to solve the expression, please see below:

sum(<Item>sales)/sum(<Item>amount)