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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change date to MonthStart?

Hello,

The following is what we're using to create our date fields. How would I manipulate this to be the month start date?

Month(MakeDate(left(right('$(vVulnerabilityFile)',11),4),left(right('$(vVulnerabilityFile)',6),2))) AS MNTH,

Thanks!

14 Replies
sunny_talwar

These did not work?

Sum({<MonthStart={"$(=Max(MonthStart))"}>}CRITICAL)

Sum({<MonthStart={"$(=Max(MonthStart))"}>}HIGH)

Not applicable
Author

Nope. Maybe I should clarify what i'm trying to obtain.

I want a pie chart that shows critical, highs, and lows for the previous month.

If I do sum(CRITICAL), etc it will work just fine, but that is for all time. How do I get it to just show for the previous month?

vishsaggi
Champion III
Champion III

What is the format of your MonthStart? Is it MM/DD/YYYY ?

Not applicable
Author

yes

sunny_talwar

Previous should be this

Sum({<MonthStart={"$(=AddMonths(Max(MonthStart), -1))"}>}CRITICAL)

Sum({<MonthStart={"$(=AddMonths(Max(MonthStart), -1))"}>}HIGH)