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

show blank where there is no possible values

Hi,

Can anyone help to show blank instead of hyphen where there is no possible values, the product 4 has no row in the fact, so it shows a hyphen in the straight table:

fact:
LOAD * inline [
product,tag,date,key
P_1,T_1,01/01/2001,P_101/01/2001
P_1,T_1,15/01/2001,P_115/01/2001
P_1,T_1,31/01/2001,P_131/01/2001
P_2,T_2,01/02/2002,P_201/02/2002
P_3,T_1,01/03/2003,P_301/03/2003
];


product:
LOAD * inline [
product,name
P_1,product_1,
P_2,product_2
P_3,product_3
P_4,product_4
];

date:
LOAD * inline [
date,month,year
01/01/2001,1,2001
15/01/2001,1,2001
31/01/2001,1,2001
01/02/2002,2,2002
01/03/2003,3,2003
];

 

JMAROUF_0-1655203698926.png

 Thanks in advance 

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

You need to handle it in expression using if()

Calculated dimensions

=Aggr(If(date,date,' '), product,date)

=Aggr(If(tag,tag,' '), product,tag)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

5 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @JMAROUF ,

Is it necessary to show the P4 in the table?

you can get rid of that row if you join the table in the script.

 

 

date:
LOAD * inline [
date,month,year
01/01/2001,1,2001
15/01/2001,1,2001
31/01/2001,1,2001
01/02/2002,2,2002
01/03/2003,3,2003
];

fact:
LOAD * inline [
product,tag,date,key
P_1,T_1,01/01/2001,P_101/01/2001
P_1,T_1,15/01/2001,P_115/01/2001
P_1,T_1,31/01/2001,P_131/01/2001
P_2,T_2,01/02/2002,P_201/02/2002
P_3,T_1,01/03/2003,P_301/03/2003
];

left join(fact)
product:
LOAD * inline [
product,name
P_1,product_1,
P_2,product_2
P_3,product_3
P_4,product_4
];

 

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
vinieme12
Champion III
Champion III

You need to handle it in expression using if()

Calculated dimensions

=Aggr(If(date,date,' '), product,date)

=Aggr(If(tag,tag,' '), product,tag)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
JMAROUF
Creator II
Creator II
Author

Thank you @abhijitnalekar , I can't join the table. 

Thaks @vinieme12 , It works just for date but not for tag.

 

luiferva
Contributor III
Contributor III

Hola JMAROUF  si no necesitas mostrar los valore nulos le puedes presionar 

luiferva_0-1655699705922.png

y listo se quitan los valores nulos.

JMAROUF
Creator II
Creator II
Author

Thanks @luiferva ,

I'm looking to show the value of dimension, I can'T hide it.