Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

new group calculation

hi

 

have a report with Brands such as Bikes, motorbikes, helmets, clothing and boots, and their revenues and items sold per period.

Now i have created a table with for each of these topics one column, but i only want to see the numbers for Bikes and motorbikes and i want to group the rest in 1 column called "Others".

Ex. Date 20180103 Brand=Helmets, sold 2 items, rev=432, 20180104 Brand=Clothing, items sold 4, rev=844, 20180105 Brand=Bikes, items sold=2, rev=3255, 20180108, Brand=boots, items sold=3, rev=632, 20180109, Brand=Bikes, items sold=1, rev=4512, 20180109, Brand=boots, items sold= 5, rev=1212, 2018011, Brand=Motorbikes, items sold=1, rev=13233, 20180113 Brand=Clothing, items sold= 4, rev=829.....

So at the end i want an overview with a row Bikes and one for Motorbikes and last but not least the category Others (which is of course the total of all brands not being Bikes and/or Motorbikes)

Month      Brand           QTY   Rev

201801     Bikes               3      7767

                 Motorbikes     1    13233

                 Other             18     3949

Thanks for your response,

m

  • Hi Anonymous ,

     

    just you go to edit Queris --> Query Editor --> Add Column --> Custom Column then Give Brand_new As column name

    Write Bellwo formula

     

    if [Brand] = "Bikes" then "Bikes" else if [Brand] = "Motorbikes" then "Motorbikes" else "Others"

     

    It will ceate new column in your repot use Brand_new will give you required output.

     

     

    Please mark as solutoin if this helps you thak you....

     

1 Reply

  • Hi Anonymous ,

     

    just you go to edit Queris --> Query Editor --> Add Column --> Custom Column then Give Brand_new As column name

    Write Bellwo formula

     

    if [Brand] = "Bikes" then "Bikes" else if [Brand] = "Motorbikes" then "Motorbikes" else "Others"

     

    It will ceate new column in your repot use Brand_new will give you required output.

     

     

    Please mark as solutoin if this helps you thak you....