Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Solved! Go to Solution.
@Anonymous , Try like
CALCULATE(averagex(Value('Date Table'[Date), [Count Nok]),
DATESINPERIOD('Date Table'[Date],
LASTDATE('Date Table'[Date]), -7, DAY
)
Make sure datetable is marked as Date table and in filters and visual you are using period/date from date table
@Anonymous , Try like
CALCULATE(averagex(Value('Date Table'[Date), [Count Nok]),
DATESINPERIOD('Date Table'[Date],
LASTDATE('Date Table'[Date]), -7, DAY
)
Make sure datetable is marked as Date table and in filters and visual you are using period/date from date table
Thank you! It worked!