Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Vern2022
Contributor III
Contributor III

empty variables qlik view

Why are my variables empty?

[SalesFunnel_DateParams_temp]:

load

date(date#([dateto], 'YYYYMMDD'), 'YYYY-MM-DD')as [datetonew],
date(date#([datefrom], 'YYYYMMDD'), 'YYYY-MM-DD') as [datefromnew];




    SQL SELECT  *
    FROM [BI_DWH_CORE].[Reporting].[v_QV_COM_SalesFunnel_DateParams];
let va = date(date#([dateto],'YYYY-MM-DD'), 'DDMMYYYY');
let vb = date(date#([[datefrom],'YYYY-MM-DD'), 'DDMMYYYY');
let vblog = 'My name is blob!';

letvblob is fine. that was a test. The date variables contain nothing. PS, the fields do return values in qlik view.

Many thanks.

Labels (2)
2 Replies
Somasundaram
Creator III
Creator III

use this

let va =peek('[datetonew]',0,'[SalesFunnel_DateParams_temp]')

let vb =peek('[datefromnew]',0,'[SalesFunnel_DateParams_temp]')


-Somasundaram

If this resolves your Query please like and accept this as an answer.
Kushal_Chawda
MVP
MVP

@Vern2022  What you want to store in variable? Variable holds single value , you cannot call any field directly.