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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
amandabus21
Helper V
Helper V

Conditional Column

Hello,

 

Im adding a conditional coliumn where I want it to do : 

 

If Case containts "PED" then Pedestrians.

 

Is there a way I can make it that the word "PED" is its own word. I keep getitng a result where PED is in a word and not its own word. 

Example I dont  "WIPED" as a result. 

8 REPLIES 8
andhiii079845
Solution Sage
Solution Sage

You can try this:

left([your column],3) = "PED"

Only the first 3 words will be checked.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




How would I add that in power query?

 

I have a few other conditions in there.

amandabus21_0-1679339624209.png

 

In this case i would create a translations table with the current value and the new value to maintain it better. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




How would I do that?

andhiii079845
Solution Sage
Solution Sage

Do you mean PED has to be in the beginning of the word?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




It could be beginning of a word example "Pedestrain" or its own word "PED" 

Hi @amandabus21 ,
Can you please sample data and expected output as it will help me to solve this quicker?
Thank you.

amandabus21_0-1679508976163.png

 

If you see, the only "pedestrian" signifciant event correct would be bus 810 because it has the word PED isolated on its own. Unlike the other ones that its just at the beginning, middle, or end of another word.

@KeyurPatel14 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.