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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
filipebarros
Frequent Visitor

Try this if Columm doesn t otherwise if columm doesn t exist do that

Hi, I need help with a formula that replace null values to 0 if colum A and B exists , but often the columm B does not exist when  I do a columm to lines transformation. how would it be do write the try and otherwise to a columm that doesn t exists? I need this check at the begginning of the code because I have a lot of other code lines that need to know if the columm exists.

2 REPLIES 2
Anonymous
Not applicable

can you upload a sample?

 

 

Initial tableInitial table

 

Sum in power querySum in power query

 

Initial table with DeliveryInitial table with Delivery

  
  If I update a table without Delivery it doenst show The collum Delivery , and then the calculation gives a error because the columm Delivery does not exists










     
   
 
 
   
     
   
   
     
   
 


 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors