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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
flyingmada
Helper I
Helper I

Line Graph - How Do I Create a label from a different value?

I have a forecast line graph showing values based on a recorded date - and then that line graph goes to zero. I'd like to label the "0" value with the date. Is this possible in power bi?

 

Esiting graph is below. At the end of each line, I'd like the label to show as the date. Right now its only showing in the popup tool tip.

 

flyingmada_0-1623261441649.png

 

2 REPLIES 2
Anonymous
Not applicable

@flyingmada 

Unfortunately, using the tooltip is the only opinion. You can use format sting to show "date" when it goes to 0 but only in text data type. In your case, the measure has to be integer format in a line graph.

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@flyingmada there is nothing out of box but you can achieve this with format string in the calculation groups where you can put the condition that if value is zero then show date else show value.

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Kudoed Authors