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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors