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

Aggregate based on dimensions

Hi All,

Is there an way to sum based on dimension.

For example (Data Source):

     

DateEmployeePurchaseOrderVendorDays
1-Jan-17Emp1P0001V00011
1-Jan-17Emp1P0002V00011
1-Jan-17Emp1P0002V00021

If it vendor,date and employee is same then the days count is 1 in my output

Expected Output:

     

     

DateEmployeePurchaseOrderVendorTotal Days
1-Jan-17Emp1P0001V00011
1-Jan-17Emp1P0002V0001
1-Jan-17Emp1P0002V00021

Thanks,

Selva

1 Solution

Accepted Solutions
sunny_talwar

May be this:


Aggr(Count(DISTINCT Date&Vendor&Employee), Date, Vendor, Employee)


Capture.PNG

View solution in original post

1 Reply
sunny_talwar

May be this:


Aggr(Count(DISTINCT Date&Vendor&Employee), Date, Vendor, Employee)


Capture.PNG