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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
freakinaditya
Helper II
Helper II

Can we limit number of data labels in line chart?

Hi all,

 

Is there any way that we can customize data labels of the line chart in power bi desktop?

Suppose I want only four data labels for maximum, minimum, opening and closing values to be shown in the line chart as follows-

linechart.png

I don't want all the data labels to be shown. Is it possible?

Thanks in advance!

1 ACCEPTED SOLUTION
freakinaditya
Helper II
Helper II

I have got a custom visual, named Multi Axis Chart by xViz, which can show data labels for maximum, minimum, open and closing values. Check out here .

Solution.JPG

 

View solution in original post

7 REPLIES 7
freakinaditya
Helper II
Helper II

I have got a custom visual, named Multi Axis Chart by xViz, which can show data labels for maximum, minimum, open and closing values. Check out here .

Solution.JPG

 

Greg_Deckler
Super User
Super User

@freakinaditya Create a measure that only returns values at the open, closed, min and max. Add this measure as a second value to your line chart. Turn on data labels and then scroll down and turn on Customize series. Turn data labels for your first value off and then your data labels from only your second measure will be displayed.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi Greg, Could you help with the said measure as suggested by you here?

@Greg_Deckler I tried what you explained but I am getting three different lines on the chart. I have calculated measures for maximum and minimum values. I don't want to display three-line rather I would display a single line and maximum and minimum values to be displayed in data labels only.Linechart.JPG

What I wanted was something like this--

DL.JPG

 Here DL stands for Data labels.

I don't want all data labels to be displayed.

@freakinaditya Can you provide some sample data as text so that I can mock this up?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  This is a sample table having a month and a sales column.

Now I have to only show data labels for maximum and minimum values rather than displaying data labels for all values.

 

Month Sale Amount
Jan41544
Feb4469
Mar59496
Apr5466
May5986
June98612
July96461
Aug44466
Sept47974
Oct49648
Nov3658
Dec49757

 

Hi @freakinaditya ,

 

I suggest you use Max and Min line in Analytics:

 

Capture.PNG

 

Open the data label option:

 

Capture1.PNG

 

Capture2.PNG

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.