The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have 2 visuals, one for Quarter = Q and month, my line chart shows series labels and not legend
So i have this working for a data lable on the month chart where i compare the start of month date in the fact/data source eg: 2025/01/01
this calculated col works:
Solved! Go to Solution.
Hello @icassiem ,
Hi @icassiem ,
Thanks for reaching out to the Microsoft fabric community forum.
As per your requirement, I have implemented a solution in Power BI where the line chart dynamically displays the label only for the last data point whether it's in Month view (e.g., December) or Quarter view (e.g., Q4). This ensures that no other data points are labeled, keeping the chart clean and focused.
To achieve this, I created a proper date table with Month, Quarter, and Year columns, and established a relationship with the main data table. Then, I used a DAX measure that identifies the last visible date in the current visual context and displays the value only for that point.
Here's the measure:
ShowOnlyLastPoint =
VAR MaxVisibleDate = CALCULATE(
MAX('DateTable'[Date]),
ALLSELECTED('DateTable')
)
RETURN
IF(
MAX('DateTable'[Date]) = MaxVisibleDate,
SUM('SalesData'[Value])
)
This measure has been added to the chart along with the original value, and data labels are turned on. As a result, only the final data point is labeled, and it updates dynamically if filters or slicers are applied.
This approach is fully aligned with your expectations and provides a clean, focused visual for end users.
Please find the attached pbix file for your reference.
Best Regards,
Tejaswi.
Community Support
Hello @icassiem ,
Thank You @v-tejrama , @anilelmastasi
I got it going. my only issue with the second measure was that is repeats in the tooltip