Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Expression

Hi,

I am not getting results even when I use correct syntax, could any one help me please

=Only({$<Type={'Incident'}>}Id)

=Only({$<Type={"Incident"}>}Id)

Thank you in advance.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

My mistake I was creating Dimension instead of Measure with this (=Only({$<Type={'Incident'}>}Id)) expression in a table.

Thank you for all your responses. Have a great day 🙂

View solution in original post

14 Replies
shraddha_g
Partner - Master III
Partner - Master III

can you share sample app with some sample data

mdmukramali
Specialist III
Specialist III

Hi,

Are you trying to count the Id's where Type of the Id is Incident?

Then Try count instead of Only.

=Count({$<Type={'Incident'}>}Id)

Anonymous
Not applicable
Author

Sure. Below is the Data, I am using the expression in a table so that the table show only Incident ID and details

   

IDType
123Incident
112Request
345Change
235Incident
467Problem
123Incident
456Request
Anonymous
Not applicable
Author

Actually I don't want to aggregate the data I want to show only few records in a table so I am using Only() function.

ToniKautto
Employee
Employee

It does not always work that way. Use Count(DISTINCT) to validate the number datapoints included. If the result is greater than 1, Only() will return NULL for the same aggregation

mdmukramali
Specialist III
Specialist III

Hi,

PFA.

shanky1907
Creator II
Creator II

What is your Dimension?

agigliotti
Partner - Champion
Partner - Champion

you have to use set analysis {< Type = {'Incident'} >} in all your chart expressions.

shraddha_g
Partner - Master III
Partner - Master III

PFA