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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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 (1)
2 Solutions

Accepted Solutions
tresesco
MVP
MVP

Try like:

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

View solution in original post

sunny_talwar

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
tresesco
MVP
MVP

Try like:

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

Vegar
MVP
MVP

As @tresesco  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

You can also try

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

or

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