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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
STs2207
Frequent Visitor

If then else old value

Hi,

 

So I want to transform data in one column in the following way but cannot find a solution.

 

In the cells, I want to erase part of the content in the cells. A lot of cells start with "Worked by" but following but a different name and I want to erase the names.

 

I thought about something like if (contains ([columnname], ""Worked"); "Worked"; show old value) but I don't know to not apply modification if the cell doen't start with worked by

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @STs2207,

 

Is this the same question with your another post: https://community.powerbi.com/t5/Desktop/If-then-else-old-value/m-p/400494#M182961?

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @STs2207,

 

Is this the same question with your another post: https://community.powerbi.com/t5/Desktop/If-then-else-old-value/m-p/400494#M182961?

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-jiascu-msft

 

Thank you for ntoticing it! Yes it is the same question. I thought the first I posted it didn't work out so did it again

vanessafvg
Super User
Super User

@STs2207  where are you doing this power query or dax?

 

not 100 % sure what you saying, maybe you can demonstrate with some examples





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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