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.
Good morning
I have a table that provides me with figures as in the schema below
Date individual value
1/4/24 Lola 1.2
1/4/24 Lola 0.7
2/4/24 Lola 2.5
Each day may have more than one entry per individual and several individuals
I have the following measure which provides me with daily values
Solved! Go to Solution.
@MyWeeLola , You can try like
Last 7 =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = _max -7
return
CALCULATE([Your Measure] ,DATESBETWEEN('Date'[Date],_min,_max))
@MyWeeLola , You can try like
Last 7 =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = _max -7
return
CALCULATE([Your Measure] ,DATESBETWEEN('Date'[Date],_min,_max))