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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.