Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hi, i am new to Qlik, would like to group part of dimension.

In my dimension data there are negative value (-7 to -1), and then '0' onwards, i would like to group -ve value as one group, call it '-ve' and would like to take rest dimension as is in axis.

4 Replies
Anil_Babu_Samineni

May be use this

If(Len(Sum(Sales))<0, '-ve', rest) as Dimension

Then use Calculation as per your need

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
ramasaisaksoft

Hi Pankaj,

Check this also

if(num(Dim)<0,'-Ve',Dim) as Dim

for your practice

=if(num(-5)<0,'-Ve',5)

Not applicable
Author

Try like this

if(sign(sum(sales))=-1,'Negative','Positive') as Dim

avinashelite

in the front end expression

If(Sum(Sales)<0, '-Ve', Sum(Sales))


//script

if(Sales<0,'-Ve',Sales) as Sales_New