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

calculate incidents in a month

Hi guys,

I want to calculate cases by Branchcode/Ip_address,month wise in script level, Please find the sample data...Please help me out this issue.I'm manually calculate flag in attached data

Capture.JPG

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Input:

LOAD IP_Address,

     BranchCode,

     IP_Address & BranchCode as Key,

     [Case ID+],

     [Down Since],

     Month([Down Since]) as Month,

     [Up Since],

     Flag

FROM

[222759.xlsx]

(ooxml, embedded labels, table is Sheet2);

Left Join (Input)

Load Key, Count(Month) as Flag2 Resident Input

Group By Key;

Drop Field Key;

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi

try this pivot table ?

aggr(count(BranchCode),BranchCode)

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try this:

Aggr(Count(BranchCode), BranchCode, IP_Address)

Screenshot_2.jpg

Outcome:

Screenshot_1.jpg

MK_QSL
MVP
MVP

Input:

LOAD IP_Address,

     BranchCode,

     IP_Address & BranchCode as Key,

     [Case ID+],

     [Down Since],

     Month([Down Since]) as Month,

     [Up Since],

     Flag

FROM

[222759.xlsx]

(ooxml, embedded labels, table is Sheet2);

Left Join (Input)

Load Key, Count(Month) as Flag2 Resident Input

Group By Key;

Drop Field Key;