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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Plot a line chart with data contains "=" and range of values

I have a set of ranking data that contains "=" and a range of values

 

Below is the test data: 

Yearranking
201898=
2019123
2020395
2021321=
2022480
2023491-500

 

I am trying to plot a line chart as follows, could anyone suggest how could I plot it in PowerBI or how cound I amend the data in PowerBI to plot this line chart?

The data label should display as follows:

 

vrmahbo_0-1682403597862.png

 

1 ACCEPTED SOLUTION

No problem, on the tool tip page, select somewhere on the canvas and in the format pane there should be a Canvas settings. The type will adjust the size, tooltip size might be a little large still for your measure. If you slect custom youu can manually adjust it.

 

DOLEARY85_0-1682410286380.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

9 REPLIES 9
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

is the ranking field in the data source? if so you can use replace it in power query by using replace values in on the transform ribbon, just enter = in the find box and leave the replace blank.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Anonymous
Not applicable

Hi,

Thank you for your reply.

 

The ranking field is the data source. If using the replace function, the line chart will not show the "=" in the line chart. I would like to show the raw data in the line chart.

 

In addtion, some of the year using a range of value (e.g. 491-500). I am not sure how could I plot a line chart with data that contains plain integer (e.g. rank 123 in 2019) , interger with "=" (e.g. rank 321= in 2021) and a range of value (rank 491-500 in 2023).

 

I don't think you're going to have much success plotting those values due to the non numeric elements. Could you create another field that removes the additional = etc. plot those and use the current ranking value as a tool tip?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
 

Anonymous
Not applicable

How could I only show the current ranking value as a tooltip? I find both data will show on it

vrmahbo_0-1682408800665.png

 

If you create a new page and set that page to tooltip:

 

DOLEARY85_0-1682409251306.png

 

then put your column/measure on there 

 

go back to the chart on the original page and format the tool tip of the chart to pick up that page.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Anonymous
Not applicable

It seems great! One more question: how could I amend the size of the tooltip as it seems too large when I go back to the original page.

vrmahbo_0-1682410006247.png

 

No problem, on the tool tip page, select somewhere on the canvas and in the format pane there should be a Canvas settings. The type will adjust the size, tooltip size might be a little large still for your measure. If you slect custom youu can manually adjust it.

 

DOLEARY85_0-1682410286380.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Anonymous
Not applicable

Thank you for all your information!😀

No problem, happy to help 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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