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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Syndicate_Admin
Administrator
Administrator

Classification of customers by levels

Hello team, thank you for your time and help. I describe the case:

I have a table F_ALL ORDERS with all annual sales by rows. Each sale has a different Id (Name field), its amount (Total field), its date (Created at field) and the user ID that made it is your email (Email field). A user can have between 1 and n purchases and therefore appear from n rows.

I have a second table CALENDAR, to set date, month, year, etc ... as recommended in most courses and tutorials I have seen, in this case the date field is Date.

I have a third DAX MEASURES table, with all the measures such as Total amount of all purchases with the SUM function (total_revenue), number of customers with a DISTINCTION of the email field (total_clientes) and another that can be useful for revenue / customer (AV Revenue / Customer) among many other measures.

My intention is to set the percentage of customers depending on the time range you choose, using a filter with the Date field of the CALENDAR table, in 4 different levels:

LEVEL 1 > Total expenditure from 1 to 49 euros

LEVEL 2 > from 50 to 149

LEVEL 3 > from 150 to 299

LEVEL 4 > more than 300

Thank you very much for your help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , if these are column values, You can create a new column using Switch

 

Switch( True(),

[expenditure] <49, "01 - 49",

[expenditure] <150, "50 - 149",

// Add others

)

 

In case expenditure is a measure, you need dynamic segmentation

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin , if these are column values, You can create a new column using Switch

 

Switch( True(),

[expenditure] <49, "01 - 49",

[expenditure] <150, "50 - 149",

// Add others

)

 

In case expenditure is a measure, you need dynamic segmentation

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.