Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to find Sales in a month.

Hi,

kindly let me know the set analysis logic.

find the sales of particular month. ie there are production plants like plant A it uses monthly raw material in tons. and there is date field

i want formula that in text box i want to display monthly consumption  if i click on jan i will show jan consumption and so on.

4 Replies
ElizaF
Creator II
Creator II

Try this function for text box

   num(Sum( {$} Amount),'#,##0')

You will find here some  useful stuff:QlikView How To (or Tips & Tricks) Application

Mark_Little
Luminary
Luminary

Hi,

Well depends exactly what you want,

=Sum(Amount)

Will give you amount in the the text box, this will then change on selection.

=Sum({<Plant={'A'}>}Amount)

This will give you the sum of amount for the Plant A and still change on other selections.

Then to format the number you can use the num() function like below.

=NUM(Sum({<Plant={'A'}>}Amount),'£#,##0;-£#,##0','.',',')

Hope this helps.

Mark

Anonymous
Not applicable
Author

Simple

sum(Sales)

miguelbraga
Partner - Specialist III
Partner - Specialist III

Hey there,

To get used to set analysis you may want to read this paper:

https://community.qlik.com/servlet/JiveServlet/previewBody/6798-102-1-8466/Les_set_analysis_ENG%5B1%...

Also if you want the value of a month you can make something like this:

=sum({$<[Plant Production Code] = {'Plant A'}, Year=, Month = {$(=max(monthField))}>} Sales)

Regards,

MB