Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help in expression as the expression is not working?


Hi,

I have Straight table. The data is coming from excel sheet.

Dimension: Member

Expressions are

Number: Count(Distinct(ID))

Fail: count({<[Result]={'Fail'}>}Distinct ID)

When I am using the second expression(Fail) the values are showing zeroes eventhough the excel sheet contains data for fail. Please can anayone help me.

Thanks.

1 Solution

Accepted Solutions
srchilukoori
Specialist
Specialist

I think the error is in the script.

dup_issue_script.png after enclosing the fields 1E, 2E... in square brackets, the results are displayed correctly.

View solution in original post

37 Replies
Not applicable
Author

Please find attached.

EDIT: In excel sheet the overall result contains Pass and Fail. But the values in the Result contains '1' and 'Blanks'

Here '1' means fail and 'Blamkns' means pass.

srchilukoori
Specialist
Specialist

You are using a wrong field. You need to use Overall Result = Fail

its_anandrjs
Champion III
Champion III

Check your expression like

count(Distinct {< [Result] = {'Fail'} >} ID)


Hope this helps

Not applicable
Author

Yes you are right. I tried that already. I have a doubt here if I use Overall Result will I get correct values for below?

Noof Reports Reviewed, No of Failures, % of Failures for Member and for Test?

its_anandrjs
Champion III
Champion III

You have to use

count(DISTINCT {<[Overall Result] = {'Fail'}>} ID)

Hope this helps

Thanks & Regards

SunilChauhan
Champion II
Champion II

use [Overall Result] inplace

you r using wrong field thats why its showing zero

count({<[Overall Result]={'Fail'}>}Distinct ID)

Sunil Chauhan
srchilukoori
Specialist
Specialist

I don't follow the question about the No.of Reports reviewed...

I don't see any such fields in the app.

Not applicable
Author

sorry. It is Numebr, Fail and % of Fail.

Will I get the correct values for above?

Not applicable
Author

Thanks. It's working.

EDIT: I suppose I have mistaken as I thought the data in crosstabel is correct. Please help me as I attached excel and let me know how to sort this?