Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

¿How to block the filter in count?

Hi there,

I need make a Count() with the variable filter and no variable filter.

I mean, i need count the tickets by week and divide by the total tickets. The follow formule shows the count:

(Count({$<[Task Status]={'closed'},[Task Type]={'CM'}>}[Task ID])>}[Task ID]))/Count([Site ID*])

The problem is in the red part, because i need count the total "Site ID" and not the count "Site ID*" by week.

Best regards

1 Solution

Accepted Solutions
rudolfhbantim
Contributor II
Contributor II

if do you want count side id not considering the dimension, you can use Count(TOTAL Distinct [Site ID*]), but if you want not consider any selections, Count({1}TOTAL Distinct [Site ID*]).

View solution in original post

6 Replies
Gysbert_Wassenaar

Perhaps Count(TOTAL [Site ID*])


talk is cheap, supply exceeds demand
sunny_talwar

Is there a sample you can share with the expected output?

Not applicable
Author

No, this is a current formule.

rudolfhbantim
Contributor II
Contributor II

if do you want count side id not considering the dimension, you can use Count(TOTAL Distinct [Site ID*]), but if you want not consider any selections, Count({1}TOTAL Distinct [Site ID*]).

Not applicable
Author

You can create a variable for total count and then you can use it divide.

Variable:

vTotalCount=Count([Site ID])

Then your final formule will be like below:

=(Count({$<[Task Status]={'closed'},[Task Type]={'CM'}>}[Task ID])>}[Task ID]))/vTotalCount

tyagishaila
Specialist
Specialist

It may be,

Count(Total [Site ID])

I hope You have already tried it. After that did you got your required result or not?

If yes than please close the thread to choose correct answer, and if no than share sample data, to know actual issue.

Cheers.