Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
venkat1
Creator II
Creator II

How to get the total from the two different table with single date selection ?

Hi,

i Had two tables with similar fields ,

Table A having sales 

Table b having Purchases 

Now how can i represent both sales and purchase at a time by selecting date object ?

1 Reply
Marcos_rv
Creator II
Creator II

sum({$<DATE_SALES={">=$(=Date(vDate1))<=$(=Date(vTDate2))"} >} sales)

 

sum({$<DATE_PURCHARSES={">=$(=Date(vDate1))<=$(=Date(vTDate2))"} >} PURCHARSES)

 

 

vDate1 and vDate2 , son variables, deberias tener calendar object, uno para fecha inicial y otro para final, te manejarias con rangos y esto haria que que tus 2 tablas fact calculen correctamente.

 

Saludos!!!