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
sakarim
Frequent Visitor

IF statement return text on bar/line graph

Hi, I used this solution to return text using an IF statement. It works great for a table/matrix, however, the text value won't appear on a bar or line graph(see picture below). Any thoughts on how to make the text value appear on the bar/line graph?

sakarim_0-1686664134753.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sakarim ,

 

You can consider using custom tooltips instead of the default ones.

vcgaomsft_1-1687830986865.png

A PBIX file is attached for reference.

vcgaomsft_2-1687831038116.png

Create report tooltip pages in Power BI - Power BI | Microsoft Learn

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

5 REPLIES 5
sakarim
Frequent Visitor

Thanks, that works. Is there also a way to change it when you right click and select the "show as a table" option? It still shows the true value in the table.

Anonymous
Not applicable

Hi @sakarim ,

 

Show as table will display the data that's being used to create the visual. This is by design.

 

Best Regards,
Gao

Community Support Team

sakarim
Frequent Visitor

It kind of solves it but the tooltip does not change so it is still showing the true value rather than the new text, is there a way to have the tooltip change too?

Anonymous
Not applicable

Hi @sakarim ,

 

You can consider using custom tooltips instead of the default ones.

vcgaomsft_1-1687830986865.png

A PBIX file is attached for reference.

vcgaomsft_2-1687831038116.png

Create report tooltip pages in Power BI - Power BI | Microsoft Learn

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Anonymous
Not applicable

Hi @sakarim ,

PBI Desktop offers custom data labels in the May 2023 release. You can find it here under the data labels:

vcgaomsft_0-1686813178141.png

It allows you to format data labels:

vcgaomsft_1-1686813268132.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors