Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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