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: 
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

Labels (1)
4 Replies
tresB
Champion III
Champion III

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