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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DMilardo
Regular Visitor

How do I highlight the last point in a dot-plot?

Hi, I want to highlight the last value of a point in a dot-plot. The last point has the biggest result_id in the table.

 

I have a static table which gets new values every day. It has four columns: result_id, result_value_x, result_value_y and machine_classifictaion. The mchine_classification has a 0 or a1 which i use in the dot-plot as a legend. My idea was to create a new dynamic column which gives changes the value in machine_classification to 2 for the last result_id in the table. 

I get the last value in a measure which value changes based of interactions on the foil. But if I want to create the new column every row has a 2. I don't know how to change the DAX-Calculation so it's changes when I get new result_id's in my table and by filters on my foil.

 

IMG_2907.pngIMG_2911.jpeg

2 REPLIES 2
mahenkj2
Solution Sage
Solution Sage

Hi @DMilardo ,

 

I used a similar dataset:

mahenkj2_0-1685926935250.png

new_classes is a calculated column which is same as what you intend to do, using following formula:

 

new_classes = if(scattertable[result_id]<>MAX(scattertable[result_id]),scattertable[machine_classification],2)

 

If you use this column as legend, following chart is achievable:

 

mahenkj2_1-1685927102146.png

Hope it helps!

Hi @mahenkj2, thx for your response.

 

That's similar to one of my tries. 
The problem is when I filter the result_id's ,with for example a time-filter for a period of time, I get the wrong result_id. So the 2 ist static conected to my last result_id and not interactive to my filters on a foil. I tried to fix that with a measure which determines the last result_id but I get a column with a 2 in every row. 

Do you know a other way so I get a dynamic column for a dynamic legend?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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