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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
KevBI
Helper I
Helper I

Find Value that is not equal to blank() and copy it into a column

Hello Community!

I have a table with various "ProjectIDs", "Project names" and "Project Owners". 
Same "Project Names" occur often in the table, but only 1 row is filled with a "Project Owner".

 

Now I want to copy cells that are filled with the "project owner" Name into the according "Project Owner" Cells that are blank.

 

Thanks for the help!!

 

Project_IDProject_NameProject_Owner
1Hedon 
2Hedon 
3HedonOwner_A
4Beton 
5BetonOwner_B
6Gale 
7GaleOwner_C
8Gale 
1 ACCEPTED SOLUTION

@KevBI , Sorry you need to use project name

 

Project_Owner new=

if(isblank([Project_Owner]), maxx(filter(Table, [Project_Name] = earlier([Project_Name]) ) , [Project_Owner] ),[Project_Owner] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@KevBI , new column in DAX

Project_Owner new=

if(isblank([Project_Owner]), maxx(filter(Table, [Project_ID] = earlier([Project_ID]) ) , [Project_Owner] ),[Project_Owner] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

this doesn't work sadly, maybe I didn't clarify my problem enough.

If I look at the project Hedon, i want the new column to display Project Owner A in every column.
With your solution it copys not only the filled project owners, but also the blank ones.

@KevBI , Sorry you need to use project name

 

Project_Owner new=

if(isblank([Project_Owner]), maxx(filter(Table, [Project_Name] = earlier([Project_Name]) ) , [Project_Owner] ),[Project_Owner] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I found an error, maybe you can help me with that again!

So when the count of rows in Project_Owner that are blank is equal to the count of rows in Project_Owner with a name in it, it copys not only the filled project owners, but also the blank ones.

Thank you!

This works perfectly, thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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