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: 
Anonymous
Not applicable

Need help in Class Function

Hi,

I have the following table:

 

CustomerKeySales
1100
3200
7120
850
9

130

And I have the following calculated dimension:

=Dual(Replace(Class(Sales,50,'x',5),'<= x <','-'),Class(Sales,50)) and  one expression Sum(Sales)

As a result, I am getting the following result from Qlikview

Dimension     Expression

5-55                50

55-105            350

155-205          200

But My understanding is:

Dimension     Expression

5-55                50

55-105            100

105-155          250

205-255          200

Can someone explain what I am missing here?

Thanks,

Karthick S

1 Reply
avinashelite

Change the expression to Sales ..that will give the result your looking for