Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
U_Waqar
Contributor II
Contributor II

Count of IDs and their Amount which not exist in previous month but newly occurred in current month

Hi Experts,
I want to get Count of IDs and Amount of those new IDs which not exist in previous month but newly occurred in current month and will be showing output in straight table with Dimension (ID) and Measures (Count of new ID & Amount of new ID) . 
IDs can be have Amount in previous and current month but new IDs will have Amount only in current month.
Sample data is as below:

U_Waqar_0-1656489641875.png

Many Thanks



Labels (2)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@U_Waqar  Not sure on how to create a straight table. But I was able to create a KPI to count the ID and the New Amount. You can make it more dynamic using the below Idea.

Count of IDs: Count(distinct{<ID=P({<Month={'May'}>}ID)>/<ID=P({<Month={'June'}>}ID)>} ID)

Amount of New ID: Sum(distinct{<ID=P({<Month={'May'}>}ID)>/<ID=P({<Month={'June'}>}ID)>} Amount)

Create a Filter for Month and check if you are getting correct result as expected.

View solution in original post

1 Reply
sidhiq91
Specialist II
Specialist II

@U_Waqar  Not sure on how to create a straight table. But I was able to create a KPI to count the ID and the New Amount. You can make it more dynamic using the below Idea.

Count of IDs: Count(distinct{<ID=P({<Month={'May'}>}ID)>/<ID=P({<Month={'June'}>}ID)>} ID)

Amount of New ID: Sum(distinct{<ID=P({<Month={'May'}>}ID)>/<ID=P({<Month={'June'}>}ID)>} Amount)

Create a Filter for Month and check if you are getting correct result as expected.