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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
bkeenan
New Member

Custom Column

Hello,

 

I have a column of data (Column A) that has multiple values within it (Classifications) separated only by commas. I only need some of those values to be considered (List of Specific Classifications) for my new column (Column B). I am unfamiliar with Dax and need help with the language.

 

I need to create a column that will follow this logic:

 

Column B = if (Column A) contains 2 different values from (List of Specific Classifications), then Y, else N.

 

Is this possible with Dax? Could someone please point me in the right direction?

4 REPLIES 4
bkeenan
New Member

Thank you for your tips. I am unable to share the data as it is confidential, but will try what was suggested.

It can be fake data, sample of what you have.

How to get good help fast. Help us help you.

How To Ask A Technical Question If you Really Want An Answer

How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Manoj_Nair
Solution Supplier
Solution Supplier

@bkeenan - try this power query custom column as shown in the screenshot.

image.jpg

Custom col power query step

image.jpg


If this post helps to find solution would be happy if you could mark my post as a solution and give it a
thumbs up

 

Best regards

Manoj Nair

Linkedin - https://www.linkedin.com/in/manoj-nair-%E2%98%81-344666104/

edhans
Super User
Super User

You need to share data, otherwise we are just guessing. I think this belongs in Power Query by parsing your data into a list, then using List.Contains() to find hits. But until I see the data, I won't know.

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.