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: 
venkat1
Creator II
Creator II

how to show max date sales in tables when i had not selected year

there is a pivot table gold and diamonds with two dates for gold and diamond.

now i want to write an expression for both gold and sales totals 

if no selection done on year then in table it should come sum of sales for current day,if any selection had done then it should come accordingly to the selection of fields.

 

3 Replies
gf
Creator III
Creator III

Can you share the file?
gf
Creator III
Creator III

Declare a variable for example:

vSelectedDate =if(GetSelectedCount(yourDate)=0,Today(),GetFieldSelections(yourDate))

To sum it up use: SUM( {$<Text = {'Diamond' }, Date={'vSelectedDate'}>} SALDO)

Should work.

 

venkat1
Creator II
Creator II
Author

i tried it was not working