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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
derekli1700
Helper III
Helper III

Data Label won't show on Line & Clustered Column Chart unless Legend or Column y-axis field is empty

derekli1700_1-1775608568619.png

 

First pic shows what my current Line and Clustered Column chart looks like, representing stock levels. 

Normally i would go to Data Labels -> apply series to Annotation Point -> Detail -> Data field to "Annotation Label" and it would show my data labels. However, this seems to only work if my legend or column y-axis field is empty. (as seen below)

derekli1700_2-1775608730837.png

Is there a way to fix this? Not sure if this is a dax issue or formatting.


Below is the dax for the "annotation label" referenced in Data Labels:

 

Annotation Label = 
VAR CurrentLabel = SELECTEDVALUE('Chart Axis'[Label])
RETURN
SWITCH(
    CurrentLabel,
    "April", "Order",
    "August", "Replenish",
    BLANK()
)

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@derekli1700 

The value for line chart can't be text. We can only display numbers

However, you can add it in the label details.

11.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
cengizhanarslan
Super User
Super User

When the Legend or Column y-axis is empty, each point on the visual has a single row in filter context, so SELECTEDVALUE on the axis label returns cleanly. The moment you add a Legend, each axis position now has multiple rows in context and SELECTEDVALUE returns BLANK because it can no longer resolve a single value. So I believe you could try using a measure as below if the values are same for every legend:

 

Annotation Label =
VAR _CurrentLabel =
    MAX ( 'Chart Axis'[Label] )
RETURN
    SWITCH (
        _CurrentLabel,
        "April",  "Order",
        "August", "Replenish",
        BLANK ()
    )

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Hi @derekli1700 ,
Thanks for reaching out to the Microsoft fabric community forum. 


I would also take a moment to thank  @ryan_mayu  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference. 
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team

ryan_mayu
Super User
Super User

@derekli1700 

The value for line chart can't be text. We can only display numbers

However, you can add it in the label details.

11.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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