Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Grazie
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;
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.
can you post the exact script you are using and some sample data
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
];
Hi All,
I was on vacation 🙂 I confirm that the evact script is that posted by Ahidhar.