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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors