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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
craghubi2020
Frequent Visitor

Help with Conditional or Custom Column

Hi,

Can anyone help me with this. I wanted to create a "Conditional/Custom column" values from another by searching values from other column. Example is below. Column "First Characters" value 515 is present somewhere in "Batch Number" column. I want to search 515 in 'Batch Number' and where ever it present, I want to show corresponding "Batch Name" (PB30) in Custom/Conditional column. 

 

craghubi2020_0-1678697036873.pngcraghubi2020_1-1678697250693.png

 

Thanks

Raghu

4 REPLIES 4
craghubi2020
Frequent Visitor

@Greg_Deckler Thanks for your response. The 'First Characters' field is having other values as well like in below screenshot. Our requirement is to search these values in 'Batch number' filed and pick-up and then if it contains, the corresponding ''Batch Name' should display in Custom column.

craghubi2020_0-1678702294249.png

 

@craghubi2020 So are there 2 different tables (queries) involved here? Hard to tell from your image(s)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler , There is only 1 table. the columns are from same tables.

Greg_Deckler
Community Champion
Community Champion

@craghubi2020 Use Text.Contains: Text.Contains - PowerQuery M | Microsoft Learn



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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