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
Pikachu-Power
Impactful Individual
Impactful Individual

get value for last date

hello all,

 

For the measure = CALCULATE(SUM(Table[Value]), Table[Name] = "Amount"i get following results:

 

Unbenannt.PNG

 

How can I get the value for the latest existing Calcdate? (in example just want the value 4 for 14.01.2021)

 

thanks.

5 REPLIES 5
Tahreem24
Super User
Super User

@Pikachu-Power ,

Or you can create new Column like below Screen shot;

Capture.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Doesnt work because we have other Names... see my Message 3.

Hi @Pikachu-Power ,

 

In my opinion, there is nothing wrong with the calculation logic. If it is caused by the data model, please provide a sample pbix to let us know your scenario more clearly.

Please remove any sensitive data before uploading.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tahreem24
Super User
Super User

@Pikachu-Power ,

Try this below DAx:

CALCULATE(Sum(Table[Value]),FILTER(Table,CalcDate = MAX(CalcDate)))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Thats what I tried first 🙂 I get BLANK then because beside Name = Amount I have other Name`s with CalcDate 19.01.2021. So in your formula MAX(CalcDate) = 19.01.2021 and there no values exist for Name = Amount.

 

May possibe to Filter only Table[Name] for MAX?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors