Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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

1 ACCEPTED SOLUTION
BalaVenuGopal
Resolver I
Resolver I

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....

 

View solution in original post

1 REPLY 1
BalaVenuGopal
Resolver I
Resolver I

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....

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors