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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
Resident Rockstar
Resident Rockstar

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.