Jump to content
We've recently updated our Privacy Statement, available here ×

Count distinct rows with conditional (IF) in static report


renatomitsunami

Recommended Posts

Hi, I'm trying to count distinct rows with a conditional (IF)...example table:

CityModelTicket

SP

HOS

1234

MTRTO1234

SP

HOS

1234

ESRTO5678
PEHOS9630

SP

HOS

1234

In this script...    IF $F{City}="SP" AND $F{Model}="HOS"...  count rows where $F{Ticket} is distinct.

I have 3 rows but only 1 row distinct (SP/HOS/1234)....Result of variable $V{COUNT_X} = 1.

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...