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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Get the latest price of an item based on a calendar table

Hello PBI community, 

 

I've been trying to duplicate a n 'Excel MAXIFS' function in powerbi & I tried some of the responses published in the forum, however, they are not working. Below example shows the "Latest Date" column which I created in excel as MAXIFS(B:B,B2,F2:F10=G2:G10), something like this and now I would like to recreate this inside powerbi. 

 

idaly_0-1677019358954.png

One of the problems is that the 'CaledarDate' column comes from an only calendar table, they don't share the same table. Can you help with this?

2 REPLIES 2
olgad
Super User
Super User

Hi,

Latest Date = Calculate(
    Calculate(max(T[Date 1]),
    Filter(T, T[Date 1]=Max(T[Date 1])))
,All(T[Date 1]))
olgad_0-1677020929582.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
Anonymous
Not applicable

So this returns just the overall latest date which is today 02-21-2023, when i create a new measure the filters that I have in my data don't get passed. I need to somehow do a 'if the item number = item number' then return 'latest date' which is what I'm struggling with, and this item number is store in it's own table 'Item'[Item Number]. I wanted to see if there is a formula to do MAXIFS(Item:Item, Item, CalendarDate = Latest date)

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 Solution Authors
Top Kudoed Authors