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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lamia89
Regular Visitor

Customer Segmentation doesn't show up

Customer Segmentation =
IF (
    'Cleaned Sales Data'[Total Sales] <= 9100, "Low Value",
    IF (
        'Cleaned Sales Data'[Total Sales] <= 330000, "Mid Value",
        "High Value"
    )
)
I used this dax but still nothing appear in pie chart and I can't figure out the issue, any support?
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @lamia89 ,

 

From the results of the pie chart display you provided, you placed both [Customer Segment] and [total_spending] into Value

If there are no fields placed in Legend, then [Customer Segment] and [total_spending] will not be grouped together and will all show one value

You can place [Customer Segment] in the Legend and [total_spending] in the Value so that [total_spending] will be grouped by [Customer Segment].

vyangliumsft_0-1721887184169.png

If the above method does not meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

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
Anonymous
Not applicable

Hi  @lamia89 ,

 

From the results of the pie chart display you provided, you placed both [Customer Segment] and [total_spending] into Value

If there are no fields placed in Legend, then [Customer Segment] and [total_spending] will not be grouped together and will all show one value

You can place [Customer Segment] in the Legend and [total_spending] in the Value so that [total_spending] will be grouped by [Customer Segment].

vyangliumsft_0-1721887184169.png

If the above method does not meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

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

lamia89
Regular Visitor

 

I used this code to create new column for customer segmentation

Customer Segment =
IF (
    'Cleaned Sales Data'[SALES] <= 9100, "Low Value",
    IF (
        'Cleaned Sales Data'[Total Sales] <= 330000, "Mid Value",
        IF (
            'Cleaned Sales Data'[Total Sales] <= 900000, "High Value"
    )
))
but it shows only low and mid value but there's is high values , in python visualization the correct one shows the correct data while the one with power bi nor correct Customer seg.JPGcustomer seg.python.JPG
 
Anonymous
Not applicable

Hi  @lamia89 ,

I created some data:

vyangliumsft_0-1720748003655.png

Are you referring to the number of Customer Segmentation displayed in the pie visual.

You might consider placing [Customer Segmentation] in the Legend and Values of the pie visual.

vyangliumsft_1-1720748003662.png

 

If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better.

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.