Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

restrict data showing on a chart

Is it possible to add an expresion on the chart so that it only show certain records?

The chart shows void costs and tenancy costs for each property. We only want the chart to populate records where their is entry for both fields (([Completed Value]) and ([Cost])).

Was thinking this might be done is the calculated condition...?

Any assistance would be greatly appreciated.

Chris

1 Solution

Accepted Solutions
avinashelite

Hi Chris,


Please find the attachment for the solution.


View solution in original post

7 Replies
MK_QSL
MVP
MVP

Provide sample data file pls.

Not applicable
Author

Yes this is possible..... Could you pl provide the qvw file

avinashelite

Try like this:

in the chart dimension > add calculated dimension > if([Completed Value]<>'' and [Cost]<>'',Dimension)

or

if(len([Completed Value])>0 and len([Cost])>0,Dimension)

Not applicable
Author

The data is sensitive so added a test - see attached

maleksafa
Specialist
Specialist

you should add this filter to your expression, it the expression did not return any value the whole line will be removed.

Not applicable
Author

Hi,

Do you put in the word 'dimension' or is this replaced?..only part of exprssion it doesnt' like.

avinashelite

Hi Chris,


Please find the attachment for the solution.