Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

stats for this month so far

Hi all,

I am trying to put a KPI on my dashboard showing the number of invoices so far this month but unsure on how to achieve it.

can anyone help please?

i know i need to use a count(distinct Invoice_Number) but not sure how to add this month so far in.

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Assuming you have a field named Month:

count({<Month={'$(=month(today()))'}>} distinct Invoice_Number)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar

Assuming you have a field named Month:

count({<Month={'$(=month(today()))'}>} distinct Invoice_Number)


talk is cheap, supply exceeds demand
Not applicable
Author

If you have more than one year though, you will need to add

Year={'$(=year(today()))'}}

also

Not applicable
Author

ok thanks both. i am new to qlikview, how would i add the two of those in the same set analysis?

Gysbert_Wassenaar

Good point, Rebecca!

You can add the year clause like this:

count({<Year={'$(=year(today()))'}, Month={'$(=month(today()))'}>} distinct Invoice_Number)


talk is cheap, supply exceeds demand
Not applicable
Author

Thats great. thanks for your help both.