The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

How to count unique values limited by another column


Jacek Bartlewicz

Recommended Posts

Hi,

I am relatively new to Spotifire and would appreciate support from some more advanced users ;)

I would like write an expression to count the number ofunique subjects in a study with a specific value. For example, from a table below:

 

 

 

Patient

Cohort

Measurement

 

 

101

A

10

 

 

101

A

12

 

 

201

A

10

 

 

201

A

11

 

 

201

A

13

 

 

301

B

10

 

 

401

B

11

 

 

501

B

10

 

 

501

B

11

 

 

 

I would like to Count the number of Patients with Cohort A (so, in the above example, the result would be 2). I tried using the expression

UniqueCount([Patient] when [Cohort] in ("1"))

but the syntax does not seem to be correct. May I kindly ask what the correct expression would be here

Link to comment
Share on other sites

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...