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
bullius
Helper V
Helper V

Table with SUM values

Hi

 

I want to produce a table with SUM values. My data looks something like this:

 

Current data:

 

CodeYearTypeAmount
A2013Type 110
A2013Type 120
A2013Type 21
A2013Type 22
A2014Type 140
A2014Type 24
A2015Type 135
A2015Type 23
B2014Type 15
B2014Type 110
B2014Type 120
B2014Type 2100
B2014Type 2200
B2014Type 2150
B2015Type 150
B2015Type 2300

 

Table I want to produce:

 

CodeYearType 1 Sum
A201330
A201440
A201535
B201435
B201550

 

As you can see, I want the sum of [Amount] filtered by [Type], grouped by [Code] and [Year].

 

I have tried a few different formulas, but can't get anything to work.

 

Any help appreciated!

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@bullius Go to power bi desktop query editor, under Transform tab click Group by and apply it as shown below.

 

Capture.PNG

View solution in original post

2 REPLIES 2
ankitpatira
Community Champion
Community Champion

@bullius Go to power bi desktop query editor, under Transform tab click Group by and apply it as shown below.

 

Capture.PNG

That works, thanks!

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.