Formula for New Column on Power BI

Matthew Hedge

New Member
Joined
Mar 27, 2006
Messages
8
Hi,



I am trying to create a new column (D) where the "starting status" would be be populated in a new column. It would be based on the info in column B. Is there a solution to this? Thank you.

1652310121254.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi @Matthew Hedge
In your Query Editor, create a Conditional Column that is called New Column (or Starting Status).
The formula would be
if [Rank] = null then [Pitcher] else null

Then highlight the New Column/Starting Status and go to the Transform tab > Fill > Fill Down
You can then filter to exclude the nulls in the Rank column, but only if you need to.
Close and Load.
 
Upvote 0
Solution
Hi @Matthew Hedge
In your Query Editor, create a Conditional Column that is called New Column (or Starting Status).
The formula would be
if [Rank] = null then [Pitcher] else null

Then highlight the New Column/Starting Status and go to the Transform tab > Fill > Fill Down
You can then filter to exclude the nulls in the Rank column, but only if you need to.
Close and Load.
Hi,

Thanks for the response. It did not achieve the desired result.

1652375401149.png
 
Upvote 0
I think you haven't done this part yet:
Then highlight the New Column/Starting Status and go to the Transform tab > Fill > Fill Down
You can then filter to exclude the nulls in the Rank column, but only if you need to.
 
Upvote 0
Hi @Matthew Hedge
In your Query Editor, create a Conditional Column that is called New Column (or Starting Status).
The formula would be
if [Rank] = null then [Pitcher] else null

Then highlight the New Column/Starting Status and go to the Transform tab > Fill > Fill Down
You can then filter to exclude the nulls in the Rank column, but only if you need to.
Close and Load.
Hi.
Missed this part.

Then highlight the New Column/Starting Status and go to the Transform tab > Fill > Fill Down
You can then filter to exclude the nulls in the Rank column, but only if you need to.

It works great!. Thank you.

1652376472278.png
 
Upvote 0

Forum statistics

Threads
1,223,666
Messages
6,173,673
Members
452,527
Latest member
ineedexcelhelptoday

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