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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
vijaynov
Contributor II
Contributor II

i want show Sales Count Day wise and Month wise using date field IN KPI

for example i have a calender box when i select particular date like 01-01-2021  I want show particular date sales count 1 and month sales count is 5

date Sales
01-01-2021 10
02-01-2021 20
03-01-2021 30
04-01-2021 40
05-01-2021 50
01-02-2021 60
02-02-2021 70
03-02-2021 80
04-02-2021 90
05-02-2021 100
01-03-2021 110
02-03-2021 120
03-03-2021 130
04-03-2021 140
05-03-2021 150

 

2 Replies
anat
Master
Master

load *,month(date#(date,'DD-MM-YYYY')) as month;

load * inline [

date Sales
01-01-2021 10
02-01-2021 20
03-01-2021 30
04-01-2021 40
05-01-2021 50
01-02-2021 60
02-02-2021 70
03-02-2021 80
04-02-2021 90
05-02-2021 100
01-03-2021 110
02-03-2021 120
03-03-2021 130
04-03-2021 140
05-03-2021 150

](delimiter is ' ') ;

 

for daily :count(Sales)

for monthly:aggr(count({<date=>}Sales),month)

 

chris_djih
Creator III
Creator III

when selecting a single date: day sales: count(Sales) -> it woul be more safe if you have somthing like a sales_ID.
for month sales try something like this:
 count ( {1<date={">=Monthstart(date) <=Monthend(date)" }>} sales) //-> better sales_ID

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.