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

Table Box/ Straight Table

Hi All

I have a table box consisting of fields:

[NAME]   [GUID]   [USER_ID]   [MODEL]

I only want the table to populate results if the "Model" field is not null based on the selection criteria.

How can I do this?

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Instead of MODEL use below

If(IsNull(MODEL) or LEN(TRIM(MODEL))=0,NULL(),1) as MODEL

Now create a table box and go to presentation tab...

SELECT MODEL and tick Omit Rows Where field is NULL

View solution in original post

4 Replies
simondachstr
Specialist III
Specialist III

Think of maybe creating a straight table instead and suppressing nulls on the Model field

MK_QSL
MVP
MVP

Instead of MODEL use below

If(IsNull(MODEL) or LEN(TRIM(MODEL))=0,NULL(),1) as MODEL

Now create a table box and go to presentation tab...

SELECT MODEL and tick Omit Rows Where field is NULL

Not applicable
Author


Hi Manish

I'm pulling the MODEL field from a SQL table so therefore I can't use the QV expresion.

Or should I first get it from SQL then write the expression to recreate the field?

Not applicable
Author

Tabla:

SQL

SELECT *

FROM TABLE;

then in the resident load use the expression given by Manish.

LOAD

If(IsNull(MODEL) or LEN(TRIM(MODEL))=0,NULL(),1) as MODEL

RESIDENT Tabla;


Hope it helps!


Regards