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

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

Reply
Anonymous
Not applicable

How to group the data of a table under the same name?

Good morning everyone,

 

I have the following problem. My data currently looks like this

 

Company  ||  Value 2018 ||  Value 2019  ||

      A                     20                  13

      B                     23                  45

      C                     15                  15

      D                      2                   10              

      E                      30                  35 

----------------------------------------------

  TOTAL                90                  118          

 

And I would like to group al the companies which aren't A, B or C under the name ''REST'' to create something like this:

 

Company  ||  Value 2018 ||  Value 2019  ||

      A                     20                  13

      B                     23                  45

      C                     15                  15

     REST                 32                  45

----------------------------------------------

  TOTAL                90                  118          

 

Any ideas? 

 

Thank you very much!

 

Regards

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi  @Anonymous 

 

You can add a column like below.

Column = 
VAR __col ='Table'[Column1]
RETURN 
IF( __col IN { "A", "B", "C" }, __col, "Rest" )
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.




     

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi  @Anonymous 

 

You can add a column like below.

Column = 
VAR __col ='Table'[Column1]
RETURN 
IF( __col IN { "A", "B", "C" }, __col, "Rest" )
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.




     

Anonymous
Not applicable

Lovely, that was exactly what I was looking for!

 

Regards

 

Adrian

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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