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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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