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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

the constant line name is not showing

 

Hi everyone,

I'm writing this message because i need to name the constant line label shown as "undefined" that i created over this visual, but i didn't find where to do it in the propreties panel that i have 

Utilisateur_pb_1-1739543331955.pngUtilisateur_pb_2-1739543407828.png

 

1 ACCEPTED SOLUTION

Hi @Utilisateur_pb ,

 

Thank you for your update. I attempted to reproduce the issue using a similar dataset and configuration, and the constant line label is displaying correctly without showing "undefined." Thank you for your valuable inputs, @Anonymous .

 

Please ensure the following:

  1. Valid Value Input:
    • Confirm that the constant line value is entered manually or returned by a valid measure.
    • Blank or invalid values can cause the "undefined" label.
  2. Measure Validation (if applicable): Ensure your DAX measure doesn’t return BLANK () or null.
  3. Data Label Settings: Under Data label, try toggling the Style option (e.g., from Both to Value).
  4. Power BI Version: Check that you are using the latest version of Power BI Desktop.
  5. Re-add Constant Line:  If all else fails, try removing and re-adding the constant line.

 

Vyubandimsft_0-1740162549660.pngVyubandimsft_1-1740162573490.png

 

Vyubandimsft_2-1740162602224.png

 

 

If you’ve already tried these steps and the issue continues, could you please share the exact steps or a snippet of your data model?  This will help me provide more precise guidance.

 

If my response solved your query, please mark it as the Accepted solution to help others find it easily.

And if my answer was helpful, I'd really appreciate a 'Kudos'.

 

 

 

View solution in original post

6 REPLIES 6
V-yubandi-msft
Community Support
Community Support

Hello @Utilisateur_pb ,

 

We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.

Your feedback is valuable to us, and we look forward to hearing from you soon

 

 

V-yubandi-msft
Community Support
Community Support

Hi @Utilisateur_pb ,

 

We wanted to follow up on our previous conversation regarding the issue you were experiencing. Have you had a chance to try the solutions we discussed?

If you need further assistance or have any updates, please let me know. If the issue is resolved, kindly mark it As Accepted Solution.

 

Best regards, 

Yugandhar.

V-yubandi-msft
Community Support
Community Support

Hi @Utilisateur_pb ,

We  wanted to follow up and check if the solution provided by @Anonymous , worked for you. It looks like they shared an accurate fix for your issue. Thank you for your response @Anonymous .

 

If the solution resolved your problem, kindly consider marking it As Accepted. it helps others facing the same challenge. If you need any further clarification, feel free to reach out. We'reready  to assist. 

 

Best regards,
Yugandhar.

Anonymous
Not applicable

Under Data Label then Style, you have seleted Both - change this to get different options

3CloudThomas_0-1739552417128.png

 

 

 

 

I've done this, but i couldn't change the name 'undefined', i tried but it doesn't work.

Utilisateur_pb_0-1739874992478.png

 

Hi @Utilisateur_pb ,

 

Thank you for your update. I attempted to reproduce the issue using a similar dataset and configuration, and the constant line label is displaying correctly without showing "undefined." Thank you for your valuable inputs, @Anonymous .

 

Please ensure the following:

  1. Valid Value Input:
    • Confirm that the constant line value is entered manually or returned by a valid measure.
    • Blank or invalid values can cause the "undefined" label.
  2. Measure Validation (if applicable): Ensure your DAX measure doesn’t return BLANK () or null.
  3. Data Label Settings: Under Data label, try toggling the Style option (e.g., from Both to Value).
  4. Power BI Version: Check that you are using the latest version of Power BI Desktop.
  5. Re-add Constant Line:  If all else fails, try removing and re-adding the constant line.

 

Vyubandimsft_0-1740162549660.pngVyubandimsft_1-1740162573490.png

 

Vyubandimsft_2-1740162602224.png

 

 

If you’ve already tried these steps and the issue continues, could you please share the exact steps or a snippet of your data model?  This will help me provide more precise guidance.

 

If my response solved your query, please mark it as the Accepted solution to help others find it easily.

And if my answer was helpful, I'd really appreciate a 'Kudos'.

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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