Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator II
Creator II

Only days of current month in sum

Hello, I am looking for a correct formula.

I need the sum of the individual days of the current month.

I have a date as a dimension. I added the following formula to the metric to test the month of May:

 

{<[DATE] ={">=$(=date(addmonths(MonthStart(Today()),-1))) <=$(=date(addmonths(MonthEnd(Today()),-1)))"}

 

In the case of the dimension, I only see days from May. However, no value for May 31st. But there is definitely one in the database. The problem seems to be with all months with 31 days.

Can you help me change the formula accordingly and, if it works, change it to the current month?

Johannes

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI @reporting_neu 

Try like below

{<[DATE] ={">=$(=date(MonthStart(Today(),-1))) <=$(=date(MonthEnd(Today(),-1)))"}>}

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI @reporting_neu 

Try like below

{<[DATE] ={">=$(=date(MonthStart(Today(),-1))) <=$(=date(MonthEnd(Today(),-1)))"}>}

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
reporting_neu
Creator II
Creator II
Author

The solution was that close. Many Thanks!