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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
przwrz3
Frequent Visitor

Calculate table and replace values based on another table

Hi,

 

I have a following source table:

Contract IDStart DateEnd DateValue
A12020-12-012021-12-31100
A22021-03-012022-12-31200
A32021-05-012023-12-31300

 

I'm trying to create a calculated table with contracts, which expire before 2023-01-01 and at the same time Start Date and End Date will change to Expiry Date plus 1 day, so in results I'll get:

Contract IDStart DateEnd DateValue
A12022-01-012022-12-31100
A22023-01-012023-12-31200

 

I know how to create calculated table:

 

    CALCULATETABLE (
        'tblContractList',
        'tblContractList'[End Date] < DATE ( 2023, 01, 01 )

)

But how to replace the values in Start Date column in calculated table based on values from End Date column from the source table?
        

1 REPLY 1
Anonymous
Not applicable

Why would you want to do it in DAX instead of Power Query? Is it not easier, faster and more efficient to do the transformation in PQ?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.