Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I'm really new in Qlik so far but the most thinks are working with my basic understanding.
At the moment I have follwing issue:
I have several products with different timestamps. Each Product has a product number and a unique serial number and a time stamp.
Now I want to make following analysis.
1. Which serial number has a timestamp in the last 12 month
2. Which serial number has more or equal than 2 timestamps in the last 12 month
3. Now I want to find out which product number has a serial number which has >=2 time stamps in the last 12 month
Do you have an idea how I can solve my issue how to aggregate over two fields?
I believe that you can answer all three of these questions using set analysis in a table chart, instead of creating new fields. For your dimension in a table chart, use the following expressions. Results below.
Question 1: =aggr(Only({$<Timestamp={">$(=Addmonths(Today(),-12))"}>}[Serial Number]), [Serial Number])
Question 2:
=aggr(Only({$<[Serial Number]={"=Count({$<Timestamp={"">$(=Addmonths(Today(),-12))""}>} Timestamp)=2"}>}[Serial Number]), [Serial Number])
Question 3:
=aggr(Only({$<[Serial Number]={"=Count({$<Timestamp={"">$(=Addmonths(Today(),-12))""}>} Timestamp)>2"}>}[Product Number]), [Product Number])
Thanks, that helped me a lot!
I tried to finally get a clue to solve my issue with the aggr described above. As a final result I'm going to expect a table in QLIK like following:
Product numer | Number of Serial Number with more than 2 timestamps in the last 12 month
1234567 | 1
45378923 | 0
7437372 | 0
3452354 | 0
4353454 | 0
How should the formula look like for "Number of Serialnumbers with more than 2 timestamps in de last 12 month"