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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

issue in current month

Hi all,

@Vegar 

@sunny_talwar 

im  using text object  to show the max month data  .

and using below expression not working.

 

YearMonth = 2020-Jul, 2020-Aug   

when open the dashboard i want to see max month data text object and it should show  based on yea month selection it should chnge.

 

tried below exp:    count({<status={'yes'},YearMonth={'$(=Month(today()))'}>}id)

 

 

 

Labels (2)
2 Solutions

Accepted Solutions
tresB
Champion III
Champion III

Try like:

count({<status={'yes'},YearMonth={`$(=Date(today(),'YYYY-MMM'))`}>}id)                 // note, inverted quotation

View solution in original post

sunny_talwar
MVP
MVP

You can also try

Count({<status = {'yes'}, YearMonth = {"$(=Date(Today(), 'YYYY-MMM'))"}>} id)

or

Count({<status = {'yes'}, YearMonth = {[$(=Date(Today(), 'YYYY-MMM'))]}>} id)

 

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try like:

count({<status={'yes'},YearMonth={`$(=Date(today(),'YYYY-MMM'))`}>}id)                 // note, inverted quotation

Vegar
MVP
MVP

As @tresB  is showing in his reply - you need to format the output of your today() expression so it matches the format in your [YearMonth] field.

Your present expression where trying to compare YearMonth to a month short name like 'Aug' or 'Sep' depending on the output of today(). 

sunny_talwar
MVP
MVP

You can also try

Count({<status = {'yes'}, YearMonth = {"$(=Date(Today(), 'YYYY-MMM'))"}>} id)

or

Count({<status = {'yes'}, YearMonth = {[$(=Date(Today(), 'YYYY-MMM'))]}>} id)