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
icturion
Resolver II
Resolver II

exclude future dates from measure

Hi,

 

I am trying to graph the performance of the current year compared to a year earlier in that period. I then included a line showing the difference in percentage. The problem I run into is that the percentage for the future is shown in the chart as 0%, with the result that my yearly average is also too low. How can I ensure that the percentage is not calculated for the period to come?

 

example graph.JPG

 

Im yousing the following measures:

  • Uitgevoerd = (countrows(table)
  • Uitgevoerd PY = calculate([# total AC], DateADD('calendartable'[datecolumn].[Date], -1, YEAR))
  • # vs PY = DIVIDE([Uitgevoerd] , [Uitgevoerd PY], 0)

hopefully someone knows the solution

1 ACCEPTED SOLUTION

thanks for your response, it pointed me in the right direction. I solved it like this now:

 

Measure 2 =
VAR LastActualDate =
LASTNONBLANK (
'table'[datumcolumn].[Maand],
[uitgevoerd]
)
RETURN
CALCULATE (
DIVIDE ( [Uitgevoerd], table[Uitgevoer PY], 0 ),
LastActualDate
)

View solution in original post

2 REPLIES 2
itchyeyeballs
Impactful Individual
Impactful Individual

Hi,

 

We use a measure like this:

 

Measure2 =
CALCULATE (
[Measure1],
FILTER (
ALL ( 'DateTable'[DateCol]),
'DateTable'[DateCol] <= MAX ( ( 'DateTable'[DateCol]) )
)
)+0

thanks for your response, it pointed me in the right direction. I solved it like this now:

 

Measure 2 =
VAR LastActualDate =
LASTNONBLANK (
'table'[datumcolumn].[Maand],
[uitgevoerd]
)
RETURN
CALCULATE (
DIVIDE ( [Uitgevoerd], table[Uitgevoer PY], 0 ),
LastActualDate
)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors