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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

compare two Excel files

Hi,

I wish to compare two Excel files, "reference file" and "check file". In this file, "title 1" is the main reference. "Title 2" is a set of modules that belongs to the "title 1" number, and "title 3" is the serial number of the "title 2" modules. I want to see only the errors between my "reference file" and "check file".


This is a example 

SAFMALO_1-1692266809720.png

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @Anonymous 

You can create a calculated column in 'check file' table

Checker =
VAR a =
    MAXX (
        FILTER (
            'reference file',
            [Title 1] = EARLIER ( 'check file'[Title 1] )
                && [Title 2] = EARLIER ( 'check file'[Title 2] )
        ),
        [Title 3]
    )
RETURN
    IF ( [Title 3] = a && a <> BLANK (), "Yes", "No" )

Output

vxinruzhumsft_0-1692586740348.png

Best Regards!

Yolo Zhu

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

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @Anonymous 

You can create a calculated column in 'check file' table

Checker =
VAR a =
    MAXX (
        FILTER (
            'reference file',
            [Title 1] = EARLIER ( 'check file'[Title 1] )
                && [Title 2] = EARLIER ( 'check file'[Title 2] )
        ),
        [Title 3]
    )
RETURN
    IF ( [Title 3] = a && a <> BLANK (), "Yes", "No" )

Output

vxinruzhumsft_0-1692586740348.png

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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