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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
awitt
Helper III
Helper III

Group By Columns - P&L

I am trying to group multiple columns into one of two categories with the intention of building a financial statement. I have 10 or so different revenue columns and really one COGS column. I don't want to sum all of these columns together so the GroupBy function in PowerQuery doesn't seem to be appropriate. 

 

Each row in the dataset is a different line of a customer order which with its own set of unique characteristics. Basically i'm looking for a quick way to identify all of the revnue columns together so they can be put into a drilled down matrix.

 

Ex.

Revenue

      SumOfRevColumn1

      SumOfRevColumn2

      SumOfRevColumn3

 

Expenses

      SumofCogsColumn

 

Margin

     Calculated Margin Column

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi  @awitt ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi,

 

You can create group columns like formula below, then create new hierarchy ,and let the other sub columns add to the new hierarchy Group1.

 

Group1 = "Group1"

 

4.png6.png          5.png

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.