Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

if else function

I have 1 table for companies, 1 table for payments periods, and I have text box containing total amount of payment per period as below:

Untitled.png

so if i select  client which is pays monthly, QlikSense should view only monthly payment. and hide other periods.

for example:

if(payment = 'Quarterly'), ([total device] * [price per unit] * 3)

3 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

if(payment = 'Quarterly', [total device] * [price per unit] * 3)

Or

If(payment = 'Quantity', Sum([total device]) * Sum([price per unit] * 3)

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
Anonymous
Not applicable
Author

how can I combine monthly with quarterly with yearly in 1 code

Anil_Babu_Samineni
MVP
MVP

This?

If(Match(payment, 'Quarterly', 'Month', 'Yearly'), (Sum([total device]) * Sum([price per unit]) * 3))

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