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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Is it possible to replace values to null/empty in a range?

I want to replace all values to null in between column 1, row 2, and, column 3, row 6. Is this possible?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , In power Query when right-click on column and use replace option. null should be taken as blank or null.

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
lbendlin
Super User
Super User

You can address columns with [ ] and rows with { }. Rows start with 0, columns are usually addressed by their name.

 

So let's say Column 1 is "Column1" then you would address the range as [Column1]{1..5}  etc.

 

Another (much crazier) alternative is to perform table surgery like this:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUTICYmMgNlGK1YkG81BFjDFETDBETDFEzDBEzFFFYgE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t]),
    Cut = Table.RemoveColumns(Table.FirstN(Table.Skip(Source,1),5),{"Column1","Column2","Column3"}),
    Skip = Table.FirstN(Source,1) & Cut & Table.Skip(Source,6)
in
    Skip

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.