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: 
Not applicable

Relationship between table Qlikview

If I have the following tables

Discounts:

      Date_Discount      Rate

      2014.04.01              10

      2014.04.02              11

      2014.04.05                9

      2014.04.06              12

Sales:

      Sales_Date           Amount

       2014.04.01            100

       2014.04.02            120

       2014.04.03              80

       2014.04.04              90

       2014.04.05              95

       2014.04.06             110

       2014.04.07             125

How could i get the following table?

      Sales_Date        Amount        Rate

       2014.04.01            100             10

       2014.04.02            120             11

       2014.04.03              80             11

       2014.04.04              90             11

       2014.04.05              95               9

       2014.04.06            110             12

       2014.04.07            125             12

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Its pretty much the same what enrique has done. Instead I have done a left join.

View solution in original post

7 Replies
ecolomer
Master II
Master II

is this ?

P00.png

Not applicable
Author

Tables.jpg

Not applicable
Author

Its pretty much the same what enrique has done. Instead I have done a left join.

Not applicable
Author

My question is: How do union

Where there is no discount for the Sales_date, take off immediately above.

Not applicable
Author

Thank you, Suraj

Not applicable
Author

Thank you, Enrique.

I did not see the attachment

Not applicable
Author

How could i do something more dynamic?