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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
RichardRozgonyi
Partner - Contributor II
Partner - Contributor II

Use Field Value in another field in Set analysis

Hello everyone,

Could someone please help me.
I need help with the following calculation.
I would like to calculate the amounts per mandate no. before the last login.

I have already tried with many formulas without success.
All data is in a table in the script.

Thanks in advance.

Last logen calculation.png

Labels (2)
1 Solution

Accepted Solutions
PrashantSangle

Try below 

chart Type - Table

dimension - mandate_nr, last_login

Expression1 - Sum(value)

Expression2- Sum(if(invoice_date<last_login,value,0))

 

Regards,

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
PrashantSangle

Can you share sample data?

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

Try below 

chart Type - Table

dimension - mandate_nr, last_login

Expression1 - Sum(value)

Expression2- Sum(if(invoice_date<last_login,value,0))

 

Regards,

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
RichardRozgonyi
Partner - Contributor II
Partner - Contributor II
Author

The answer is very good thank you, works perfectly.
I didn't see the forest because of the tree in front of it (I was thinking too complicated).

Thank you very much Prashant Sangle

RichardRozgonyi
Partner - Contributor II
Partner - Contributor II
Author

Hello,

I would like to know the following.
I also have a calendar bound to the data model.
In Expression1 - Sum(value) (calendar is taken into account)
IExpression2- Sum(if(invoice_date<last_login,value,0)) (calendar should not be taken into account)
How do I do this?

 

BR Richard

PrashantSangle

Can you explain little bit more with example 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
RichardRozgonyi
Partner - Contributor II
Partner - Contributor II
Author

I have found the solution. Thank you very much for your help.

Sum({<Year=, Month=>}if(invoice_date<last_login,value,0))