Calculate sum of different expense types and display the value in a piechart | Community
Skip to main content
Niko_Ahlgren
Level 1
February 18, 2026
Solved

Calculate sum of different expense types and display the value in a piechart

  • February 18, 2026
  • 3 replies
  • 34 views

Hello, 

I was wondering, is there any way to combine/sum f few expense types and display that sum as a wedge in a piechart. I need to sum up a few different expense types and show those against one different expense type. So 2 wedges in a piechart, one of them is ths sum of a few expense types and the other is just one.

Best answer by KellieGardner

​Charts work off of your “groupings,” and the values can be aggregated based on that grouping, and you can’t group groupings. Additionally, pie charts only work with a single grouping.

 

Essentially, what you are trying to do isn’t possible natively within reporting, so you will need to set up your expenses to capture the data the way you need it to display in your chart and then report on it.

 

 @Richard_Le_   has a great suggestion. An additional option would be to use calculated fields on the custom form to capture your values for expense types.

 

Example Formula for a Calculated Field.

IF({expenseType}.{name}="Advertising" || {expenseType}.{name}="Consulting","Advertising/Consulting",{expenseType}.{name})

In plain Language, if the expense name is Advertising or Consulting, return the value of “advertising/consulting” otherwise just give me the expense name.

 

 

 

 

3 replies

kautuk_sahni
Community Manager
Community Manager
February 23, 2026

@KellieGardner ​@Richard_Le_ ​@Sven-iX ​@MoniqueEvans ​@Gokul_Agiwal 
Wanted to loop you in and see if you have any perspective or lessons learned that could help us here. Your insight would be helpful, thank you!

Kautuk Sahni
Community Advisor
February 25, 2026

Hi ​@Niko_Ahlgren,

 

Simplest approach here would be to create a custom form for expenses. On that form you would have a field that is used to categorise the expenses into the two “wedges” you want to display on your chart. Then simply build an expense report that is grouped by that custom field to visually represent the data how you see fit.

 

Best Regards,

Rich.

KellieGardner
Community Advisor and Adobe Champion
KellieGardnerCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 26, 2026

​Charts work off of your “groupings,” and the values can be aggregated based on that grouping, and you can’t group groupings. Additionally, pie charts only work with a single grouping.

 

Essentially, what you are trying to do isn’t possible natively within reporting, so you will need to set up your expenses to capture the data the way you need it to display in your chart and then report on it.

 

 @Richard_Le_   has a great suggestion. An additional option would be to use calculated fields on the custom form to capture your values for expense types.

 

Example Formula for a Calculated Field.

IF({expenseType}.{name}="Advertising" || {expenseType}.{name}="Consulting","Advertising/Consulting",{expenseType}.{name})

In plain Language, if the expense name is Advertising or Consulting, return the value of “advertising/consulting” otherwise just give me the expense name.