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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ChrisElf
New Member

Most Recent value (by date) in card

Hello all,

 

I hope somebody can help me out with the following.

 

Im working with a Excels sheet that is updated weekly. How can I get a card to update to the most recent values automatically? For example:

 

Date5 Week Moving AverageWeeklyGold
11/Feb/2190,04139,601825,36
04/Feb/2193,5684,651792,26
28/Jan/2195,70103,291840,36
21/Jan/2178,3853,551869,91
14/Jan/2172,5669,091846,37
07/Jan/2170,19157,231912,5
31/Dec/2055,5595,311896,49
24/Dec/2064,0716,74

1876,56

 

I want to have the card to show the most recent (most recent date) of the 5 week moving average and the weekly.

 

Thanks for the help and effort!

 

Christian

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ChrisElf , Try a measure like

 

new measure =
var _max = maxx(allselected(Table), Table[Date])
return
calculate(Average(Table[5 Week Moving Average]), filter(Table, Table[Date] = _max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
ChrisElf
New Member

Thanks, @amitchandak much much appreciated!

amitchandak
Super User
Super User

@ChrisElf , Try a measure like

 

new measure =
var _max = maxx(allselected(Table), Table[Date])
return
calculate(Average(Table[5 Week Moving Average]), filter(Table, Table[Date] = _max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.