Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using Set Analysis for date comparison as expression

Hello,

I am developing a simple table in qlikview .the  dimension for table  named "customer_payment "its fields are "customername", "duedate","dueamt","paiddate","paidamt".

i am trying to design a simple pivot table which show the sum of all those customers who have paid thier dues the same day as thier duedate.

I am currently using  set analysis ie

sum({<duedate={"=paiddate "}>}paidamt )

for finding the sum of payment on the same day but its not working .

I also tried  the "if()" condition like -

  sum( if(duedate=paiddate,paidamt,0)

this expression seems to work but i was wondering if the same result can be achieved throught Set Analysis .

I am attaching a demo application

Thanks and Regards ,

s_tushar

1 Solution

Accepted Solutions
Not applicable
Author

You can make it like that ;

sum({< duedate=p(paiddate) >}paidamt )

BR

View solution in original post

6 Replies
Not applicable
Author

You can make it like that ;

sum({< duedate=p(paiddate) >}paidamt )

BR

Not applicable
Author

Thanks

sagarpithadia
Contributor
Contributor

can you elaborate what this function P() do  ?

suresh_rawat
Creator II
Creator II

Hi,

P() function is used to show the possible result for the expression.

In you example P shows, all possible paiddate is equivalent to duedate then it shows the paidamount

Regards

Suresh Rawat

suresh_rawat
Creator II
Creator II

Also instead of P we use E function then it shows the paidamound based on all the duedate is not equal to the paiddate.

ashfaq_haseeb
Champion III
Champion III

Hi,

Check this too.

http://community.qlik.com/docs/DOC-4951

Regards

ASHFAQ