Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
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)