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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
surajde
Helper I
Helper I

Repeating last calculated value

Hi All, 

 

Need help with formula for calculating below Companylist Column which is nothing but repeating Company Name and if field is blank then says "No Company". 

 

IDCompanyCompanylist
309703748 No Company
309703748 No Company
309703748 No Company
309703748 No Company
309703748 No Company
309703748 No Company
309703748 No Company
309703748Finserve LtdFinserve Ltd
309703748 Finserve Ltd
309703748 Finserve Ltd
309703748Enable India corpEnable India corp
309703748 Enable India corp
309703748 Enable India corp
309703748 Enable India corp
309703748LTILTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI
309703748 LTI

 

Excel formula is :

=IF(A2<>A1,IF(B2="","No Company",B2),IF(B2<>"",B2, C1 ))

 

surajde_0-1685808059980.png

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @surajde,

According to your description, I think this should be more related to data transformers requirements.

You can enter to 'query edit' and use fill down feature to fill this blank part after the existed values, then use replace function to replace the remain blank part to "No company".

Fill values in a column - Power Query | Microsoft Learn

Replace values and errors - Power Query | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msft , 

 

This one is not working. Can you please check? 

Important: When ID changes then it should again start with "No Company" if Company name is blank again that record

Hi @v-shex-msft, thanks for the alternate work around but the method you mentioned is for existing raw data and not for calculated column. I want to write a formula that will do this

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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