Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ArturJ
Contributor
Contributor

sum on selected values

Hello,

I'm trying to sum Incomes witout invoices with turnover between o and 50. Any suggestione are welcome

 

 

 

Labels (1)
1 Solution

Accepted Solutions
RafaelBarrios
Partner - Specialist
Partner - Specialist

hi @ArturJ 

i think it is not very clear what you need, maybe you can paste some records to give us a clue.

 

but first i would Flag in the script those incomes without invoices.

Something like

load
....
....
if(isnull(invoice_number),0,1) as invoice_flag,
....
from <where ever>

now, in your set analysis you can do something like this

sum({<  invoice_flag={0}, turnover={">0<=50"} >} income)

 

hope it helps

help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!

View solution in original post

1 Reply
RafaelBarrios
Partner - Specialist
Partner - Specialist

hi @ArturJ 

i think it is not very clear what you need, maybe you can paste some records to give us a clue.

 

but first i would Flag in the script those incomes without invoices.

Something like

load
....
....
if(isnull(invoice_number),0,1) as invoice_flag,
....
from <where ever>

now, in your set analysis you can do something like this

sum({<  invoice_flag={0}, turnover={">0<=50"} >} income)

 

hope it helps

help users find answers! Don't forget to mark a solution that worked for you & to smash the like button!