Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
oliveton
Creator
Creator

Remove Blank Rows In an Expression

I have some columns where data  (dimension) is present, but have nothing in the 3 expression cells. 

I want to remove all rows that are blank for  the 3 expression columns "FelPro', "OH" and "SalesTotal." 

I can't use suppress when value is null because it messes up my expressions. 

Thanks for taking a look! 

Labels (1)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this in each expression:

if(len(Concat(FP, ';'))<1,null(),Concat(FP, ';'))

if(len(Concat(OnHand, ','))<1,null(),Concat(OnHand, ','))

if(len(Concat(TotalSales, ','))<1,null(),Concat(TotalSales, ','))

View solution in original post

5 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

 

Remove the concat in your expressions.

Concatenating will creates non-null strings even when you do not have data in your table.

clipboard_image_0.png

Refer qvw attached for more info.

Thanks and regards,

Arthur Fong

Brett_Bleess
Former Employee
Former Employee

Natalie, did Arthur's tweak to your app address your issue?  If so, please consider using the Accept as Solution button on his post to give him credit as well as let others know this worked for you.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
oliveton
Creator
Creator
Author

It does work with the concat removed, but unfortunately I want to keep my concat....

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this in each expression:

if(len(Concat(FP, ';'))<1,null(),Concat(FP, ';'))

if(len(Concat(OnHand, ','))<1,null(),Concat(OnHand, ','))

if(len(Concat(TotalSales, ','))<1,null(),Concat(TotalSales, ','))

oliveton
Creator
Creator
Author

Awesome, this works! Thank you!!!!