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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Bring last date if column A is greater than 0 (measure)

Hi all, 

 

I am trying to build a measure that shows the last date that we fed our livestock in a particular cage.

 

I wrote it like this: 

Last Feed Date = CALCULATE(LASTDATE('Calendar'[Date]), Filter(Actual,[Feed Kg]>0))

 

However I am just getting 31/3/2024 as a result for every column.  I want the table to look something like this:

 

CageClosed DateFeed KgLast Feeding Date
120/9/20231500019/9/2023
230/8/20231670027/8/2023
329/7/20231490027/8/2023

 

How do I tell the measure to look at each cage? Note: I can only add measures into the model, I cannot use columns

2 REPLIES 2
lbendlin
Super User
Super User

You already have the result you want.  Please clarify the question.

Good day @lbendlin 

 

I am getting result of 31/3/2024 for every single line. 

I want the last day that specific cage was fed, not the last day any cage was fed (or had planned feed). 

 

Warm regards,

Katie 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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