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: 
ali_hijazi
Partner - Master II
Partner - Master II

Help in set analysis

Dears got the following sample data

Branch, Date, Amount

001, 29/3/2014, 500

001, 28/2/2014, 600

001, 31/1/2014, 300

002, 31/5/2014, 750

002, 15,5,2014, 450

003, 30/8/2014, 300

The user on the sheet selects a month and a Year

suppose the selection is September 2014 then I want to get the sum of amount by branch for the max date that is less than 30/9/2014

I have a pivot table with Branch as the dimension

and the result would be like:

001,500

002,750

003,300

whereas if the user selects June 2014 the result has to be

001,500

002,750

Please advise

I can walk on water when it freezes
9 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand
ali_hijazi
Partner - Master II
Partner - Master II
Author

in my case it is returning zero because I might have amounts with zero values

how can I skip zero amounts?

I can walk on water when it freezes
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add a condition to the set modifier to disregard zero values.


talk is cheap, supply exceeds demand
ali_hijazi
Partner - Master II
Partner - Master II
Author

I did but not working

actually I got nulls not zeros in fact

I can walk on water when it freezes
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add a MyField = {'*'} for the field where you want to disregard null values.


talk is cheap, supply exceeds demand
ali_hijazi
Partner - Master II
Partner - Master II
Author

I did but also not working

I can walk on water when it freezes
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Post a document that demonstrates the problem.


talk is cheap, supply exceeds demand
ali_hijazi
Partner - Master II
Partner - Master II
Author

your example is not working well

select feb and branch 001 the chart should return 600 not 500

I can walk on water when it freezes
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See updated qvw


talk is cheap, supply exceeds demand