Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
anya
Contributor III
Contributor III

calculate amount in a year

hii expert ,

i need help for my qlik sense, this is example from my data qlik sense.

from this table i need sum field amount of supplier from january 2018 to january 2019

SupplierDateAmount
A01/01/20181500000
B01/01/20182000000
C01/01/20181000000
A09/05/20181200000
B10/05/20181000000
C10/05/20181400000
A13/10/20182100000
A11/01/20191500000
B12/01/20192000000
C09/01/20191000000

 

thanks,

God Blessing

 

3 Replies
prma7799
Master III
Master III

Expected Output?

anya
Contributor III
Contributor III
Author

for now, i need query for table like this

SupplierMonthsum(amount january 2018  to january 2019)
   

thanks

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try using set analysis:

= sum({<Date= {">=$(=Date(MakeDate(2018, 1, 1), 'DD/MM/YYYY')<$(=Date(MakeDate(2019, 1, 1), 'DD/MM/YYYY'))"}> } Amount)

 

You can find a lot of content about Set analysis:

http://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/S...