Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

help in calculation

Hello

I got a pivot table by Month Year

the user selects Jan 2016

and I want to count the number of customers that had only invoice transactions in Feb 2015

is this possible?

Feb 2015 is calculated from Jan 2016 i.e. it is the date 11 months prior to Jan 2016

please advise

I can walk on water when it freezes
3 Replies
Anonymous
Not applicable

use set analysis

Count{<MonthYear={$(=addmonths(MonthYear,-11)}>}Value

it maybe that you Need to Format the dateformat using date(=addmonths(MonthYear,-11,'YYYYMM')

ali_hijazi
Partner - Master II
Partner - Master II
Author

and is it possible to list them instead of counting them

I mean next to Jan 2016 display the names of the customers who got invoiced only in Feb 2015

I can walk on water when it freezes
Anonymous
Not applicable

Hi

Not tested ..

may be like this ?

Assuming your field is Customername

Only({$<MonthYear={$(=addmonths(MonthYear,-11)}>} Customername)




or


=Concat({$<MonthYear={$(=addmonths(MonthYear,-11)}>>} DISTINCT Customername, ', '))