Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor III
Contributor III

Sum if date equal to particular month

Hi All,

I would like to get the SUM of UNITS, if the RECEIPT DATE is equal to 'Jan'.

To get the Month of the date, i know it should be 

Month([RECEIPT DATE])

But it seems below formula is not correct, can anyone please help?

Sum({$<month([Receipt Date])={'Jan'}>} [Units])

1 Solution

Accepted Solutions
Highlighted

Perhaps these?

Sum(if(month(date)='jan', units))

Or

Sum({<date={"= month(date)='jan'"}>} units)

And I would always think

Sum({<monthfield={'jan'}>} units) where as monthfield is created in script if month field and date field are associated.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

View solution in original post

1 Reply
Highlighted

Perhaps these?

Sum(if(month(date)='jan', units))

Or

Sum({<date={"= month(date)='jan'"}>} units)

And I would always think

Sum({<monthfield={'jan'}>} units) where as monthfield is created in script if month field and date field are associated.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

View solution in original post