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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
johnstrang
Frequent Visitor

Group annual amounts by value

Hi everyone, 

 

I work for a small non-profit organisation, reporting on donations received.

What I want to do is, I hope, simple but I cannot work out how to do it.

 

aaa2023200
aaa2023200
bbb2023100
bbb2023100
bbb2023100
ccc2023100
ccc2023200
ccc2023200
ccc2023200
aaa2024200
aaa2024200
bbb2024250
bbb2024200
bbb2024250
ccc2024200
ccc2024200
ccc2024200

For each donor I want to add the total donations per year and then group by annual amount. So in this example:

donor aaa donated 400 in each year, bbb donated 300 in 2023 and 700 in 2024, ccc donated 700 in 2023 and 600 in 2024.

 

My goal is to have 3 ranges of annual donation:

Low = less than 400 in a year

Medium = between 400 and 600

High = above 600

 

2023 = 1 Low, 1 Medium, 1 High

2024 = 0 Low, 1 Medium, 2 High

 

Each donation is stored separately in a "Donations" table along with the donor id, date of donation among other fields.

I don't need to report on invidual donors, just the aggregated totals.

 

Any suggestions gratefully received, as I'm stumped by this.

Thank you in advance,

John

 

 

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

consider using a graphical solution with conditional formatting

 

lbendlin_0-1744642561612.png

 

View solution in original post

vivek31
Resolver II
Resolver II

Hi @johnstrang ,

First you can create a summrize table like this

Donation 1 = SUMMARIZE(Donation,Donation[Donor],Donation[year],"Annual Total",SUM(Donation[value]))

vivek31_0-1744718892417.png

second you shoud create a Donation Category Column

Lavel = SWITCH(TRUE(),'Donation 1'[Annual Total]< 400 , "Low",
                     'Donation 1'[Annual Total] < 600, "Medium","High")

and after create a matrix visual 

Rows = Year
Columns = Leval
Values =Count of Donor

Total Donar = DISTINCTCOUNT('Donation 1'[Donor])

vivek31_1-1744719143140.png

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

 

View solution in original post

7 REPLIES 7
v-saisrao-msft
Community Support
Community Support

Hi @johnstrang,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

vivek31
Resolver II
Resolver II

Hi @johnstrang ,

First you can create a summrize table like this

Donation 1 = SUMMARIZE(Donation,Donation[Donor],Donation[year],"Annual Total",SUM(Donation[value]))

vivek31_0-1744718892417.png

second you shoud create a Donation Category Column

Lavel = SWITCH(TRUE(),'Donation 1'[Annual Total]< 400 , "Low",
                     'Donation 1'[Annual Total] < 600, "Medium","High")

and after create a matrix visual 

Rows = Year
Columns = Leval
Values =Count of Donor

Total Donar = DISTINCTCOUNT('Donation 1'[Donor])

vivek31_1-1744719143140.png

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

 

v-saisrao-msft
Community Support
Community Support

Hi @johnstrang ,
I wanted to check if you had the opportunity to review the information provided by @lbendlin . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

lbendlin
Super User
Super User

consider using a graphical solution with conditional formatting

 

lbendlin_0-1744642561612.png

 

Hi lbendin

 

That works - many thanks, but is it now possible to count the occurrences of each colour / category?

 

If I could do that it would be perfect.

 

Thanks again,

John

Hi @johnstrang,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

Power BI does not support dynamic binning so you need to bring your own buckets

lbendlin_0-1744651759597.png

Then you can materialize the bucket values and count the ranges.

lbendlin_1-1744651802096.png

 

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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