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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitians
Creator III
Creator III

Code Help??

Hello,

I want count of number of brands in a period,

following is code help..

count(distinct(brand))

following code decides which brands

{< SKU_Launch_Date ={'>=$(=Date(vStartDate))<=$(=Date(vEndDate))'}>}

not able to get it right...

Thanks and Regards,

Rohit

4 Replies
tresesco
MVP
MVP

Try placing $ around variables.

Not applicable

Can you use this to get the variable value:

$(=vStartDate) and $(=vEndDate)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

{< SKU_Launch_Date ={'>=$(=Date($(vStartDate)))<=$(=Date($(vEndDate)))'}>}


It's possible you have to specify a date format too in the Date function. See this blog post: Why don’t my dates work?



talk is cheap, supply exceeds demand
rohitians
Creator III
Creator III
Author

Thank you for your precious time,

count({< SKU_Launch_Date ={'>=$(=Date(vStartDate))<=$(=Date(vEndDate))'}>}DISTINCT(BRAND))

I did this way and got the deired result..

Thanks .

Rohit