Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Control Individual Data Labels in Power BI May 2025 Version?

Hi, I am trying to control individual data labels in the May 2025 version. I am using scatter plots and want to only display certain data labels -- so not ALL or NONE. I know that's already possible ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous,

    You are absolutely right on several key points like power BI doesn’t let you add multiple independent series directly to a scatter plot like you would in a line or bar chart, the scatter plot requires a single X and Y axis field, and everything else must be grouped via "Legend" or other fields. You're also correct that calculated columns are static and won’t update based on slicers only measures respond dynamically to slicer input.

    That said, you can achieve the two-series overlay effect with data labels shown only on selected points by using a combined table + measures (which is slicer compatible).

    First add a column to your table to identify “Label Me” points. You can use this either manually or based on logic (e.g., "Top 5", selected category, etc.). Like "ShowLabel = IF('Table'[Category] IN VALUES('LabelSelector'[Category]), 1, 0)", this assumes you have a slicer table (LabelSelector) that lets users pick which categories to label. 

     

    Now create two measures for X and Y axes. One for all points (unlabeled), one for just labeled points.

    X_All = MAX('Table'[X])
    Y_All = MAX('Table'[Y])

    X_Label = IF(MAX('Table'[ShowLabel]) = 1, MAX('Table'[X]), BLANK())
    Y_Label = IF(MAX('Table'[ShowLabel]) = 1, MAX('Table'[Y]), BLANK())

     

    Now use a combined table visual trick. Add a scatter plot using X_All and Y_All, and turn off labels. Then overlay a second scatter plot using X_Label and Y_Label, and turn on data labels for this series.

    You’ll need to create two separate scatter visuals, then layer them (align carefully using the Format pane -> General -> Position & Size).

     

    Then use a slicer to control labeling. Hook up your slicer to control which values are flagged in the ShowLabel column. Since that drives the X_Label and Y_Label measures, only selected points will appear with labels in the overlay visual.

    Try this method as it works well visually and keeps the interaction dynamic slicer selections update the labeled points in real time.

     

    Best Regards,

    Hammad.