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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Sou
Contributor
Contributor

Two conditions on Text Box - QlikView

Hi,

I am trying to get the data from previous month and also that has a specific condition. I am using this formula:

count({<Column.Variable = {'Condition'}>}Column.Variable), count(InMonth(Date.DateAppointment,today(),-1), [Record_ID]))

I can use both conditions separate but cannot find the way them together to get the records for that specific condition for the previous month.

Thanks,

Labels (5)
3 Replies
BrunPierre
Partner - Master II
Partner - Master II

This might be what you are looking for.

=Count({$<Column.Variable = {'Condition'}, Date.DateAppointment = {"$(=MonthStart(AddMonths(Today(), -1)))<=$(=MonthEnd(AddMonths(Today(), -1)))"}>} [Record_ID])
Sou
Contributor
Contributor
Author

It doesn't work, it gave me 0, I created a variable, this is what I have that also gave me 0:

Count({<ColumnVariable={'Reject'},Date.DateAppointment={'$(vPreviousMonth)'}>} Record_ID)

 

BrunPierre
Partner - Master II
Partner - Master II

The reason could be that the dates are formatted differently.