Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
GianlucaG
Contributor
Contributor

Riempimento campi vuoti

Buongiorno, 

chiedo il vostro supporto nel modificare una tabella che ha dei campi non compilati che sono da compilare con i valore precedente. Le colonne a sx è la tabella che deve essere modificata e in quella destra il risultato finale che su xlsx è ottenibile con una semplice formula che ho riportato. I campi da riempire sono evidenziati in giallo.

Come posso ottenere lo stesso risultato su qlik sense?

GianlucaG_1-1703776861641.png

Grazie 

 

Labels (1)
5 Replies
vinieme12
Champion III
Champion III

Use the Peek() function during data load

Example

temp:

Load

Date_Event

,Evento_M as Evento_M_original

From Xyz_Source;

 

Main:

Load 

Date_Event

,Evento_M_original

,if(len(Evento_M_original)<1,peek('Evento_M'),Evento_M_original) as Evento_M

Resident temp

Order by Date_Event ASC;

Drop table temp;

 

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

Grazie per la risposta. Funziona ma ho dimenticato di evidenziare che i campi si riferiscono ad un ID. Inserisco la screen short.  Con l'id non funziona il problema rimane non si riescono a popolare i campi.

GianlucaG_0-1703782657300.png

 

vinieme12
Champion III
Champion III

can you post the exact script you are using and some sample data

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

try this

tab:
load *,
if(isnull(Evento_M),peek(Evento_Completo),Evento_M) as Evento_Completo;
load ID,date#(Data_Evento,'DD/MM/YYYY') as Data_Evento,
if(len(Evento_M)=0,null(),Evento_M) as Evento_M inline
[
ID,Data_Evento,Evento_M
4,25/10/2023,Evento del 25/10/2023
4,26/10/2023
4,27/10/2023
4,14/11/2023,Evento del 14/11/2023
4,15/11/2023
4,16/11/2023
4,17/11/2023
5,21/11/2023,Evento del 21/11/2023
];

Ahidhar_0-1704183816838.png

 

GianlucaG
Contributor
Contributor
Author

Hi All,

I was on vacation 🙂 I confirm that the evact script is that posted by Ahidhar.