Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
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