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

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

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