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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
alisoroush7
Helper I
Helper I

categorize customer

hi guys,

i have data like the below table

customerdatesale
x07/18/202223,000 $
y07/15/202253,000 $
z07/10/202236,000 $
x02/22/202210,000 $
z05/17/202223,000 $

 

i have 2 rule that i want to implement it:

if total sale of a customer is less than 55,000 $ then label it as A

else label it as B

and finally i want to have a chart that shows me how many percent of my customers is labeled as A and B

how can i achieve this?

thanks.

1 ACCEPTED SOLUTION

@alisoroush7, yes it's possible. 
Please don't forget to accept the solution and will appreciate your Kudos on my solutions 🙂
Here is a link to download the file with the updated solution:
categorize customer 2022-07-20.pbix

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@alisoroush7 
Here is a link to download the file with the solution:
categorize customer 2022-07-20.pbix


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

thank you for your respons. with this code my request has been satisfied 80%.

i have another issue. the issue is that i have a date filter. for example month. when i filter my dashboard in a specific month, i want that code to consider only the chosen month data and label the customer based on a chosen month. for example it is possible that one customer is labeled A in July but it is labeled B in March.

@alisoroush7, yes it's possible. 
Please don't forget to accept the solution and will appreciate your Kudos on my solutions 🙂
Here is a link to download the file with the updated solution:
categorize customer 2022-07-20.pbix

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.