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: 
ceccannito
Contributor II
Contributor II

Set Analysis previous three month

Hi everybody,

i need to calculate a number of suppliers of three previous month.

I have to build a table of three column where the first contain the city, the second a number of suppliers and the third has to contain a number of suppliers of previous three month.

I have used this below:

First Column: FORN_UBICAZIONE_COD

Second Column: Count(FORN_COD)

Third Column: =count({<FORN_DATA_INIZIO={"=$(=MonthStart(AddMonths(Max(FORN_DATA_INIZIO),-3)))"}, >}FORN_COD)

but it doesn't work.

.

Can you help me?

Thanks

2 Replies
Zhandos_Shotan
Partner - Creator II
Partner - Creator II

JustinDallas
Specialist III
Specialist III

Can you describe "not working"?  What is it doing/giving to you?  You want the last 3 months, so I assume that you would have a greater than sign somewhere in your set analysis when comparing to the beginning of the 3 months.

Something like this off the top of my head:

count({<FORN_DATA_INIZIO={">=$(=MonthStart(AddMonths(Max(FORN_DATA_INIZIO),-3)))"}, >}FORN_COD)