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.
hello!
I have this measure to get the last 7 days costs from my all costs measure.
@Anonymous Try:
costs in last 7 days =
VAR last_Date = LASTDATE('Usage details'[Date] )
RETURN
AVERAGEX( FILTER(ALL('Usage details'[Date]),
'Usage details'[Date] > last_Date - 7 &&
'Usage details'[Date] < last_Date ),[3. (Vm + Backup) + NotVms + Mgm Fee] )
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |