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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ilcaa722
Frequent Visitor

i want a Blank else in List.Accumulate( IF...

 

= Table.AddColumn(#"Inserted Text Before Delimiter","FindReplace", 
each List.Accumulate(List.Numbers(0, Table.RowCount(replaceTable)), 
[Description],
(state, current) => 
if Text.Contains(Text.Lower(state) , replaceTable[contains]{current}) then replaceTable[replace]{current} else  "" ))

 

 

this doesnt work cause my else statement is saying "" blank... it works if I add a command with state or just "state"

 

but i dont want to return the state, i want to return a blank... how can i. thank you

 

3 REPLIES 3
tackytechtom
Super User
Super User

@ilcaa722 ,

 

Does it work for you if you substitute the "" with null instead?

 

Let me know 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

I tried to end with Text.Length(state)*0 but other errors....

does not work. error is:

cannot convert the value null to type logical

 

it seems 'state' must be part of the List.Accumulate 2 arguement and modifying it has limits

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors