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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
stribor45
Post Prodigy
Post Prodigy

Update column based on matching

Part of my code looks  like this

 

SWITCH (
    TRUE (),
    COUNTROWS( FILTER ('Table_A', 'Table_A'[Agent ID/EMPLID] = 'Table_B'[Agent Number] &&
                        'Table_A'[First Name] = 'Table_B'[Agent First Name] &&
                        'Table_A'[Last Name] = 'Table_B'[Agent Last Name] &&
                        'Table_A'[Birthdate] = 'Table_B'[Date Of Birth]
             )) > 0 , "Found",

 

Is there a way to update one of the columns in Table B based on what row was match found? So if the match was found in row 2 then column in Table B second row should be updated. I was hoping to do this in DAX instead of PQ.

 

1 ACCEPTED SOLUTION
WinterMist
Impactful Individual
Impactful Individual

OK, yeah.  Maybe someone can correct my understanding if I'm wrong.

 

But as far as I am aware, you can't change source model data with measures or calculated columns.

Only way I know to do it is in the source system itself or in Power Query.

View solution in original post

3 REPLIES 3
WinterMist
Impactful Individual
Impactful Individual

OK, yeah.  Maybe someone can correct my understanding if I'm wrong.

 

But as far as I am aware, you can't change source model data with measures or calculated columns.

Only way I know to do it is in the source system itself or in Power Query.

stribor45
Post Prodigy
Post Prodigy

yes i do want to change the date

WinterMist
Impactful Individual
Impactful Individual

@stribor45 

 

When you say "update one of the columns in Table B", it sounds like you are wanting to actually change the data itself.  Is that right?

 

This cannot be done with a measure, or even a calculated column.

I could be mistaken, but I believe the only way to alter data is either in the data source itself or in Power Query.

 

Let me know if I'm confused about what you are asking.

 

Regards,

Nathan

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.