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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors