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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Janica123
Helper I
Helper I

Showing only MIN/MAX Datalables in Linechart

Hi all, 

 

I have a measure that looks like this:
Value = 

CALCULATE(
    SUMX(Table1, Table1[Col1] /8), FILTER(Table1, Table1[Col2] = "XY"))

I visualize this measure on a linechart with month names as x-Axis: 
Janica123_0-1724062930816.png


I only want to show the datalables for the MAX and MIN Value in the chart. In this case the values 1.601,09 and 1.256,41.

Is there a way I can do this?
Thanks in advance for your help!!




1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @Janica123  To show only max and min create 2 separate measure for maximum and minimun as given below.

Max_Revenue_Month =
VAR getMaxValue = CALCULATE(MAXX(ALL('Calendar'[Name of Month]), [Revenue]), ALL('Calendar'))
 
RETURN
IF([Revenue]=getMaxValue, getMaxValue, BLANK())

and 


Min_Revenue_Month =
VAR getMinValue = CALCULATE(MINX(ALL('Calendar'[Name of Month]), [Revenue]), ALL('Calendar'))

RETURN
IF([Revenue]= getMinValue, getMinValue, BLANK())
 
Place this two measure in y axis along with main meausre. see the image below:
shafiz_p_0-1724065090168.png

 

Now go to data label format option. Off the data labels for main measure, for my case revenue. see the image below:

shafiz_p_1-1724065276016.png


Hope this helps!!

If this solved your problem, please mark it as a solution!!

View solution in original post

2 REPLIES 2
shafiz_p
Super User
Super User

Hi @Janica123  To show only max and min create 2 separate measure for maximum and minimun as given below.

Max_Revenue_Month =
VAR getMaxValue = CALCULATE(MAXX(ALL('Calendar'[Name of Month]), [Revenue]), ALL('Calendar'))
 
RETURN
IF([Revenue]=getMaxValue, getMaxValue, BLANK())

and 


Min_Revenue_Month =
VAR getMinValue = CALCULATE(MINX(ALL('Calendar'[Name of Month]), [Revenue]), ALL('Calendar'))

RETURN
IF([Revenue]= getMinValue, getMinValue, BLANK())
 
Place this two measure in y axis along with main meausre. see the image below:
shafiz_p_0-1724065090168.png

 

Now go to data label format option. Off the data labels for main measure, for my case revenue. see the image below:

shafiz_p_1-1724065276016.png


Hope this helps!!

If this solved your problem, please mark it as a solution!!

rajendraongole1
Super User
Super User

Hi @Janica123 -Unfortunately, Power BI does not directly support conditional formatting for data labels to show high values and low values which is a out-of-the-box.

 

 

Hope this helps.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors