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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Learnerr
Contributor III
Contributor III

Double records in the Expression Part

Hi,

I made a table in the front part.

 

My colums are names,training names,teacher name and my expression is the sum(time) of the education.

 

The problem is: Some participants took the education from different teacher so the time comes double for those people. How can i make a sepaeration to say that take only 1 teavher for a 1 participant.

 

Thanks.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try:          Sum(Distinct Time) 

View solution in original post

7 Replies
tresesco
MVP
MVP

Try:          Sum(Distinct Time) 

Learnerr
Contributor III
Contributor III
Author

Yes but i would like to say sum(time) when my dimension"unique teacher"

Learnerr
Contributor III
Contributor III
Author

Because some students take same education from different tutors. I would like to say sum(time) when my dimension is a distinct teacher

tresesco
MVP
MVP

Since teacher is one of your dimensions, it should work fine. If not, try to explain with an example.

Learnerr
Contributor III
Contributor III
Author

In simply how can i write this in the expression part:

One of my dimension: Teacher

Expression: Sum(Time)

 

I would like to say that sum(time) when Teacher is unique.(distinct)

tresesco
MVP
MVP

I am not sure if I understood right, to avoid other dimensions impact - you could right an expression like:

Aggr(Sum(Distinct Time), Teacher) 

Learnerr
Contributor III
Contributor III
Author

Sm_0-1644309479472.png

With this table i tried to explain:

I extract data from SAP. Some participants is recorded to sap that took a training from 2 tutors. I would like to say while calculating  sum (time) tell me only   the time from a single tutor for a participant.