Power Bi Adding Custom Columns and Formulas

benntw

Board Regular
Joined
Feb 17, 2014
Messages
222
Office Version
  1. 365
Platform
  1. Windows
I am very new to Power Bi. I am pulling a csv file and I started the transform data. I can add the custom columns , but the formula language is confusing. I figured out an easy one using the IF , then, and else. I am having trouble adding the following formulas. I am hoping someone can help with this.

=IF(AND([Activity Type]="Start Milestone",[Planned Finish]=""),$[Planned Start],IF(AND([Activity Type]="Finish Milestone",[Planned Start]=""),[Planned Finish],""))
=IF([Activity Type]<>"Not Started",MAX([Actual Start]:[Actual Finish]),"")

This last one is a little different because sometimes milestones get added and both dates are blank. On excel it gives me the 1/0/00 date
=IF(AND([Activity Start]="Start Milestone",[BL Project Finish]=""),[BL Project Start],IF(AND([Activity Start]="Finish Milestone",[BL Project Start]=""),[BL Project Finish],""))

IF anyone could help with this it would be greatly appreciated.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top