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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
rosscortb
Post Patron
Post Patron

Fill blanks in column with a value based on a condition

Hello

 

I have a column called position group which contains some values and some blanks

Also have a column called role level with some values and no blanks

 

For only the blanks in position group I want to replace with that employees value in role level.

 

So would be something like, 

IF('Spans & Layers'[Position Group] = "" , replace with values of 
'Spans & Layers'[SP Role Level], matching 
'Spans & Layers'[Employee ID]
 
 
I realise I may need to do this in query editor.
Thanks
Ross
1 ACCEPTED SOLUTION

@rosscortb , You can have a new column like

Column = COALESCE([Position Group],[Role Level])
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

@rosscortb ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

@amitchandak 

Thanks Link 

 

So, only the blanks in position group should be replaced with that employees value in role level. If position group already as a value then ignore.

@rosscortb , You can have a new column like

Column = COALESCE([Position Group],[Role Level])
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

@amitchandak That  seemed to work for my demo i sent but not my live?

role.PNG

got it i need to go into the excel file select the blanks and delete the cell, might have been a space or something hidden in it. thanks

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.