Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression on Counting

Hi QlikCommunity,

Can someone help me what expression should I use to count the Owner who has penalty per Quarter.

I will attached the data needed in for this problem.

Thanks in advance. Please help me

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Chart : Pivot Table

Dimension: Year1, Qtr1

Expression: =Count({<penalty={'>0'}>}DISTINCT owner)

You will get the required output.

Regards,

Jagan.

View solution in original post

12 Replies
sunny_talwar

What is the expected output from the file you have shared?

Not applicable
Author

Good day sunindia,

I'm expecting an output of total count the owner who has penalty per year and per quarter.

Thanks in Advance

sunny_talwar

Numerically what is the number you are expecting to see?

Not applicable
Author

in year 2013 and 2014 there must be 1 owner and in per quarter of 2013 there must be 1 per quarter, while in the 2014 quarter, only quarter 1 to 3 should have 1 and in quarter 4 there must be 0.

qlikviewwizard
Master II
Master II

Hi imlesterrawr

Could you update the excel file and attach again with your required output?

Not applicable
Author

Hi Mr. Wizard

Where is the attach button in reply section? i cant find it.
The output I need to see is the total count of owner who has penalty per year and per quarter.

can you do that with your awesome magic Mr.Wizard?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Chart : Pivot Table

Dimension: Year1, Qtr1

Expression: =Count({<penalty={'>0'}>}DISTINCT owner)

You will get the required output.

Regards,

Jagan.

jagan
Luminary Alumni
Luminary Alumni

PFA file for solution.

Regards,

jagan.

_rohitgharat
Creator
Creator

hiii Lester,

             As per your question i think you will have to make Penalty flag i.e  you have to consider penalty greater than 0

and expresion would be:

count({<PenaltyFlag={"1"},year={"$(=vMaxYear)"},quarter={"$(=vMaxqtr)"}>}  distinct owner)

Thanks,

Rohit