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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Hugo999
Frequent Visitor

Show only last data label in a line chart

dears!

I have a line chart where i want to show only the label of the last value. This works fine in this situation:

Hugo999_0-1736781708774.png

If i de-select 2411 in the slicer the "last value" is not being shown. I would have expected that the last value is beeing shown.

Hugo999_1-1736781771856.png

 

What is the best way to accomplish this?

so far i am using a measure to display the last value:

lastval_%xy =
VAR LastIndex =
    MAXX(
        FILTER(ALL('KPI'[Monat]), NOT(ISBLANK('KPI'[Monat]))),
        'KPI'[Monat]
    )

VAR CurrentIndex = SELECTEDVALUE('KPI'[Monat])

VAR LastDAUValue =
    CALCULATE(
        MAX('KPI'[ProZ_DAU]),
        'KPI'[Monat] = LastIndex
    )

RETURN
    IF(
        CurrentIndex = LastIndex,
        LastDAUValue,
        BLANK()
    )


thank you for you assistance!



1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

    MAXX(
        FILTER(ALLSelected('KPI'[Monat]), NOT(ISBLANK('KPI'[Monat]))),
        'KPI'[Monat]
    )
 
All removes internal and external filters.
If you use AllSelected it will keep the slicer filter .

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

2 REPLIES 2
SamWiseOwl
Super User
Super User

    MAXX(
        FILTER(ALLSelected('KPI'[Monat]), NOT(ISBLANK('KPI'[Monat]))),
        'KPI'[Monat]
    )
 
All removes internal and external filters.
If you use AllSelected it will keep the slicer filter .

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

thank you, this worked 🙂 😘

Hugo999_0-1736783410979.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.