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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
stuckymcstuck
Frequent Visitor

Filter specific line in line graph based on month

Hello, 

 

I'm using a line graph on a summary page with 3 lines:

 

1 - Forecasted %

2 - Total % of resource

3 - Actual % of time (based off timesheet data)

 

I have the data from April 2023 - March 2024 for lines 1 & 2 but only have April 2023 for line number 3 and this will be calcuated and added to the graph as the months progress. However, the line for number 3 is showing through will March 2024 with April 2023 figure, but I only want to show it for the specific month. How do I fix this?

 

Thanks 

1 REPLY 1
johnt75
Super User
Super User

You need to detect the last date ever in the timesheet data and only return a result if the reference date is before that, something like

My Measure =
VAR ReferenceDate = MAX('Date'[Date])
VAR LastTimesheet = CALCULATE(MAX('Timesheet'[Date]), REMOVEFILTERS())
RETURN IF( ReferenceDate <= LastTimesheet, do calculation here )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.