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.

37 Replies
srchilukoori
Specialist
Specialist

can you attach a screenshot of the error please.

Not applicable
Author

Please find attached qvw and excel. please help me.

EDIT: if you see there are no fails for some columns but still showing fail count.

for eg: for 1B,1C,1D there are no fails but still showing fail count in Error Code Straight table. That' sthe problem I am facing.

Not applicable
Author

I need to show how many reports were reviewed, failures and % of failures by Member

and how many reports were reviewed, failures and % of failures by Error Code.

srchilukoori
Specialist
Specialist

"for eg: for 1B,1C,1D there are no fails but still showing fail count in Error Code Straight table. "


You are counting the Record IDs for the 1B, 1C ...., you need to sum the Error Flags to see the total of 1B errors.

srchilukoori
Specialist
Specialist

Check the attached application for the Failure Count by error code.

Not applicable
Author

Thanks. for me it the Fail counti showing 81. Please see attached.

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.

Not applicable
Author

Thanks. That's perfect!