Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
kiranb13
Contributor III
Contributor III

Selecting the first instance of the id status

Hi,

 

I have the below following data.

Test IDRun IDResult
11Passed
12Passed
13Failed
14Blocked 
15NA
26Failed
27Passed
28Passed
39NA
310Passed
311Passed
412Passed
413Passed
514Failed
515Passes
516NA

 

I need the count of the test passed and failed the column TestId for the 1st instance in RunId. Other than these two status i need to ignore that particular row.

Expected Result :

Count of Passed=2
Count of failed=2

 

 

9 Replies
Gysbert_Wassenaar

See attached example


talk is cheap, supply exceeds demand
kiranb13
Contributor III
Contributor III
Author

Hi Gysbert,
I am not able to get the result for the above expression.
sunny_talwar

What are you getting and what are you looking to get when you use @Gysbert_Wassenaar expression and calculated dimension?

kiranb13
Contributor III
Contributor III
Author

Data is not getting displayed, it's completely empty straight table. FirstSortedValue.PNG

 

 

sunny_talwar

It might be easier if you are able to share a sample to show what is going on?

kiranb13
Contributor III
Contributor III
Author

FTR.PNG

Hi Sunny,

Above is requirement. 

FTR=(No of TC's passed/(No of TC's passed+No of TC's failed))

I need TC's status Passed or Failed count at 1st instance.

sunny_talwar

okay, sounds good

kiranb13
Contributor III
Contributor III
Author

Hi Sunny,

Did you get any chance to look into the above scenario ?

sunny_talwar

Where do I need to look? I didn't see any sample attached? Am I missing something?