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: 
PaulinePlassart
Contributor
Contributor

Null values becoming "-" when using window function

Dear community ! 

I'm using Qlik Sense on windows May 2024, I try to use window function in script.

But I noticed that when adding a window function in my table all null values of the table are transformed as "-". 

You'll found attached a small exemple. 

PaulinePlassart_2-1723807505305.png

 

PaulinePlassart_1-1723807403898.png

Is that normal or already reported as bug ?

Is there a workaround in order to keep null values as null ? 

Regards,

Pauline

 

 

Labels (2)
3 Replies
pchatziag
Luminary
Luminary

Hi Pauline,

I had exactly the same problem this week in my project and created a support case. It seems like a bug to me and should be fixed. I provided a similar app showcasing the error and wait for further details.

I can think of a lot of workarounds to this. The most obvious solution is to avoid (for the time being) using the window function and use a resident load with a group by statement instead, which will be joined to the initial table.

Solution 1:

pchatziag_1-1723932435255.png

Result 1:

pchatziag_0-1723932400431.png

Now if you insist on using the Window function, then you should try to convert the created '-' to a NULL. Unfortunately, you cannot do it in the same Load statement, in which the Window function is applied (this seems like another problem of this otherwise useful function). You can use instead a preceding load (link).

Solution 2:

pchatziag_2-1723932736306.png

Result 2:

pchatziag_4-1723932878972.png

I hope this was helpful.

Best regards,

Prodromos

 

PaulinePlassart
Contributor
Contributor
Author

Thank you for your answer ! 

 

I will follow release notes on coming patches and wait to try this new feature !

Finally I used the window function of SQL Server in order to avoid a join or second load... 

Regards,

Pauline

 

pchatziag
Luminary
Luminary

Hi Pauline,

the issue has been fixed on Qlik Cloud. I tested and could not replicate the error.

Best Regards,

Prodromos