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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Summarising a new table in categories

I have been looking to summarise to following data points % into categories and count how many is in each category. for example

 

Data

Type%
A25%
B9%
C80%
D85%
E32%
F50%
G65%

 

With result of something like this

RangeCount
Range 0-9%1
Range 10-19%0
Range 20-29%1
Range 30-39%1
Range 40-49%1
Range 50-59%1
Range 60-69%1
Range 70-79%0
Range 80-89%2
Range 90 - 100%0
1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

How about this 🙂 

tomfox_0-1644959150388.png

 

To get there, I calculated a calculated category column:

TomsCategories = 
SWITCH (
    TRUE(), 
    Table13[%] <= 0.09, "Range 0-9%",
    Table13[%] <= 0.19, "Range 10-19%",
    Table13[%] <= 0.29, "Range 20-29%",
    Table13[%] <= 0.39, "Range 30-39%",
    Table13[%] <= 0.49, "Range 40-49%",
    Table13[%] <= 0.59, "Range 50-59%",
    Table13[%] <= 0.69, "Range 60-69%",
    Table13[%] <= 0.79, "Range 70-79%",
    Table13[%] <= 0.89, "Range 80-89%"
    , "Range 90-100%"
)

 

tomfox_1-1644959278922.png

 

Otherwise, if you are planning to do a histogram and you'd like to create some buckets, I can recommend this documentation:

Use grouping and binning in Power BI Desktop - Power BI | Microsoft Docs

 

Does this fix your issue?

 

/Tom

https://www.tackytech.blog

https://www.instagram.com/tackytechtom



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
Whitewater100
Solution Sage
Solution Sage

Hi MDJ:

 

Check this out and see if it suits your needs. Thanks!https://drive.google.com/file/d/1-rZ0QFcSUULflXwHcKtYbhGk-IEfexwf/view?usp=sharing 

tackytechtom
Super User
Super User

Hi @Anonymous ,

How about this 🙂 

tomfox_0-1644959150388.png

 

To get there, I calculated a calculated category column:

TomsCategories = 
SWITCH (
    TRUE(), 
    Table13[%] <= 0.09, "Range 0-9%",
    Table13[%] <= 0.19, "Range 10-19%",
    Table13[%] <= 0.29, "Range 20-29%",
    Table13[%] <= 0.39, "Range 30-39%",
    Table13[%] <= 0.49, "Range 40-49%",
    Table13[%] <= 0.59, "Range 50-59%",
    Table13[%] <= 0.69, "Range 60-69%",
    Table13[%] <= 0.79, "Range 70-79%",
    Table13[%] <= 0.89, "Range 80-89%"
    , "Range 90-100%"
)

 

tomfox_1-1644959278922.png

 

Otherwise, if you are planning to do a histogram and you'd like to create some buckets, I can recommend this documentation:

Use grouping and binning in Power BI Desktop - Power BI | Microsoft Docs

 

Does this fix your issue?

 

/Tom

https://www.tackytech.blog

https://www.instagram.com/tackytechtom



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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