Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

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