Forum Discussion

bullius's avatar
bullius
Helper V
10 years ago
Solved

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!

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

     

2 Replies

  • ankitpatira's avatar
    ankitpatira
    Community Champion

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