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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

how to remove null values from columns having record values


I have added expanding record values in data flow, when refresh it is throwing below error. how to remove rows having null value from these two columns 

 


Error: We cannot convert the value null to type Record... RootActivityId = 4xyz.Param1 = We cannot convert the value null to type Record. Request ID: xyz

 

 

sanjusanj21_0-1596451082517.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

let
  Source =
  ITOVC_TO_LN__c = Source{[Name = "ITOVC_TO_LN__c"]}[Data],
  #"Filtered Rows" = Table.SelectRows(ITOVC_TO_LN__c, each [CreatedDate] >= (Date.EndOfMonth(Date.AddMonths(DateTime.LocalNow(),-6))) and [CreatedDate] < DateTime.LocalNow()),
 
    #"Filtered rowsnew" = Table.SelectRows(#"Filtered Rows", each [REF_MST_TO_LN_NO__r] <> null and [REF_MST_TO_NO__r] <> "")



is this correct way to remove null or empty? but the operator only gets disabled
 
sanjusanj21_0-1596466942467.png

 

View solution in original post

5 REPLIES 5
Fowmy
Super User
Super User

@Anonymous 

Try to remove the nulls in one of the previous steps and try.

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

how do i remove null rows fro column type records

@Anonymous 

 

Can you share your query?

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

let
  Source =
  ITOVC_TO_LN__c = Source{[Name = "ITOVC_TO_LN__c"]}[Data],
  #"Filtered Rows" = Table.SelectRows(ITOVC_TO_LN__c, each [CreatedDate] >= (Date.EndOfMonth(Date.AddMonths(DateTime.LocalNow(),-6))) and [CreatedDate] < DateTime.LocalNow()),
 
    #"Filtered rowsnew" = Table.SelectRows(#"Filtered Rows", each [REF_MST_TO_LN_NO__r] <> null and [REF_MST_TO_NO__r] <> "")



is this correct way to remove null or empty? but the operator only gets disabled
 
sanjusanj21_0-1596466942467.png

 

Anonymous
Not applicable

Hi @Anonymous ,

It is a little difficult to find the root cause based on provided information... Could you please provide your pbix file if it is convenient?

Best Regards

Rena

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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