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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Ttable data consolidate

Hi All,

Have table as mentioned below with Multiple names and Grades.

NameGradeCost
AppleA120
AppleB90
AppleA120
AppleB90
AppleC80
AppleD75
AppleC80

Required to consolidate the above table as per the below table.

NameGradeCost
AppleA240
AppleB180
AppleC180
AppleD75

 

Any one can help me!!!

Thanks in advance.

 

Regards,

Murali

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

Solution1:

 

You can just put the column Name, Grade, Cost into Table visual, then set the aggregation of cost as "Sum".37.png

 

 

 

 

 

 

 

 

 

 

 

 

Solution2:

 

You can create measure like DAX below.

 

Measure1= CALCULATE(SUM(Table1[Cost]),FILTER(ALLSELECTED(Table1),Table1[Name] =MAX(Table1[Name])&&Table1[Grade] =MAX(Table1[Grade])))

 

Best Regards,

Amy

 

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

 

 

View solution in original post

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi  @Anonymous ,

 

Does that make sense? If so, kindly mark the proper reply 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 @Anonymous ,

 

Solution1:

 

You can just put the column Name, Grade, Cost into Table visual, then set the aggregation of cost as "Sum".37.png

 

 

 

 

 

 

 

 

 

 

 

 

Solution2:

 

You can create measure like DAX below.

 

Measure1= CALCULATE(SUM(Table1[Cost]),FILTER(ALLSELECTED(Table1),Table1[Name] =MAX(Table1[Name])&&Table1[Grade] =MAX(Table1[Grade])))

 

Best Regards,

Amy

 

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

 

 

Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

 

Try =sumx(values('Table1 2'[Grade]),'Table1 2'[Sum of Cost]).

 

or in PBI

Consolidate = sumx(values('Table1_2'[Grade]),SUM(Table1_2[Cost]))
Consolidate.PNG

 

 

 

If this helps, consider marking this as the solution! Kudos are nice too.

 

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.