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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
TomSinAA
Helper III
Helper III

Groups for pareto

I am using Pareto visual: Pareto by sio2Graphs.  I have a field with numbers that I want to put into groups for the pareto. My numbers range from 0 to 10000.  I want to create groups such as: 0-60, 61-75, 76-120, >120.  I would then use the groups on the pareto. How do I do that?

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @TomSinAA ,

 

You can create a calculated column like this.

Range = 
SWITCH(
    TRUE(),
    [Numbers] >=0 && [Numbers] <=60, "0-60",
    [Numbers] >60 && [Numbers] <=57, "61-75",
    [Numbers] >75 && [Numbers] <=120, "76-120",
    ">120"
)

4b.PNG

Or you also can use "Add conditional column" feature in "Edit query".

5b.PNG

 

Best regards,
Lionel Chen

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-lionel-msft
Community Support
Community Support

Hi @TomSinAA ,

 

You can create a calculated column like this.

Range = 
SWITCH(
    TRUE(),
    [Numbers] >=0 && [Numbers] <=60, "0-60",
    [Numbers] >60 && [Numbers] <=57, "61-75",
    [Numbers] >75 && [Numbers] <=120, "76-120",
    ">120"
)

4b.PNG

Or you also can use "Add conditional column" feature in "Edit query".

5b.PNG

 

Best regards,
Lionel Chen

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

thanks

 

amitchandak
Super User
Super User

@TomSinAA , refer if segmentation can help

https://www.daxpatterns.com/dynamic-segmentation/
https://www.daxpatterns.com/static-segmentation/
https://www.poweredsolutions.co/2020/01/11/dax-vs-power-query-static-segmentation-in-power-bi-dax-po...
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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