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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

DAX formula for MTA

 Hi there, I have a Sharepoint list (Infopath form) in which you can insert milestones, their start date, their planned end date and their new end date (if its different from the planned end date). After all I want to create an MTA with this data.  So what I want power query actually to do is, set the data of the new end date column to a new "report-column". Like when it is 1. October 2020 I want the data of the new end date column set to the column "01.10.2020" and so on. Is this possible? Thank you very much!! Jasmin

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

Hi @Anonymous ,

 

If "end date" is equal to "planned end date", will the "New end date" show "planned end date"? If yes, you could use pivot column to have a try.

= Table.AddColumn(#"Changed Type", "Custom", each if[New end date] = null then [Planned end date] else[New end date])

2.PNG

3.PNG

 

 

Best Regards,
Xue Ding
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-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

If "end date" is equal to "planned end date", will the "New end date" show "planned end date"? If yes, you could use pivot column to have a try.

= Table.AddColumn(#"Changed Type", "Custom", each if[New end date] = null then [Planned end date] else[New end date])

2.PNG

3.PNG

 

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.

Top Solution Authors