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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kunal_mehta1
Helper I
Helper I

EXCEL FORMULA

Hi All, I have attached a sample data where i have two sheets in Excel. 
The data which i want from sheet 2 in sheet 1 is cloud classifciation column in sheet 1 cloud classification column but based on the condition that it picks the cloud classification value based on the latest date for the same name which exactly matches in sheet 1 and sheet 2.Excel BAR.PNG

2 REPLIES 2
kunal_mehta1
Helper I
Helper I

I am sorry @Jihwan_Kim . I am actually looking for an Excel formula. If you can help me with it? I accidentally posted here on the Power BI community.

Jihwan_Kim
Super User
Super User

Hi,

I assume the two tables have the relationship like below.

Please check the below picture and the attached pbix file.

It is for creating a new column.

 

Jihwan_Kim_0-1681357686622.png

 

Jihwan_Kim_1-1681357873659.png

 

Classification CC =
SUMMARIZE (
    CALCULATETABLE (
        Sheet2,
        TREATAS (
            GROUPBY (
                RELATEDTABLE ( Sheet2 ),
                Sheet2[Name],
                "@latest", MAXX ( CURRENTGROUP (), Sheet2[Date] )
            ),
            Sheet2[Name],
            Sheet2[Date]
        )
    ),
    Sheet2[Classification]
)

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.