Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
prajapatiamar38
Creator II
Creator II

Sum of Price Value

From below table i want to calculate sum(Price) for each unique ItemID price must come  only once.

Means result will be sum(Price)=80 not 170

ItemID            Price

1                      10

1                      10

1                      10

2                       20

2                       20

3                       50

3                       50

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

=Sum(Aggr(Only(Price), ItemID))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
swuehl
MVP
MVP

Maybe

=Sum( Aggr( Only(Price), ItemID))

But I would rather fix this in the data model, seems like you joined a table where a linked table might be better.

Anonymous
Not applicable

may be:

Take ITemID as a Dimension

Expression:  sum(<total ITemID> Price)

prajapatiamar38
Creator II
Creator II
Author

Thanx to all guys